#201848

A color in the Violet family

#201848 is a color in the Violet family: RGB(32, 24, 72), HSL(250°, 50%, 19%), CMYK(56%, 67%, 0%, 72%). Closest named color: midnightblue. Contrast is 16.33:1 on white and 1.29:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#201848
RGBrgb(32 24 72)
RGB (legacy)rgb(32, 24, 72)
RGB %rgb(13% 9% 28%)
HSLhsl(250 50% 19%)
HSV / HSBhsv(250, 67%, 28%)
HWBhwb(250 9% 72%)
CMYKcmyk(56%, 67%, 0%, 72%)
CIELAB (D50)lab(11.75 15.64 -29.31)
LCHlch(11.75 33.22 298.09)
OKLaboklab(0.2505 0.0237 -0.0824)
OKLCHoklch(0.2505 0.0858 286.06)
Decimal2103368

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 7.4
Closest web-safe color#330033
Hue250°
Saturation (HSL / HSV)50% / 67%
Lightness (HSL)19%
Brightness or Value (HSV)28%
Luminance (Rec.601 / Rec.709)12% / 11%
Relative luminance (WCAG)0.0143
Red / Green / Blue32 / 24 / 72

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.33:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.29:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 103.1 / 0 · As background with white / black text: Lc -105.6 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #201848;
  --color-brand-oklch: oklch(25.05% 0.0858 286.06);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(32 24 72 / 50%); }
/* Tailwind CSS */
<div class="bg-[#201848] text-[#201848] border-[#201848]">