#20041E#20041E

#20041E is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.8% C 0.065 H 330.8°. Best body text is #FFFFFF at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#20041E
RGBrgb(32, 4, 30)
HSLhsl(304, 78%, 7%)
HSVhsv(304, 88%, 13%)
CMYKcmyk(0%, 87.5%, 6.2%, 87.5%)
CIE-LABlab(4.41, 16.77, -10.25)
CIE-LCHlch(4.41, 19.66, 328.57°)
OKLaboklab(17.81% 0.0567 -0.0317)
OKLCHoklch(17.81% 0.065 330.8)
XYZxyz(0.8734, 0.4877, 1.2762)
Luminance0.0049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20041E #042006
analogous
#140420 #20041E #200410
triadic
#20041E #1E2004 #041E20
tetradic
#20041E #201404 #042006 #041020
square
#20041E #201404 #042006 #041020
split-complementary
#20041E #102004 #042014
monochromatic
#1B0319 #1B0319 #20041E #560B51 #8D1284

Accessibility & contrast

On white

19.13
#20041E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#20041E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20041E
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20041E#FFFFFF#000000##FFFFFF
##20041E1.0019.131.1019.13
#FFFFFF19.131.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030D1F
Deuteranopia (green-blind)
#0B111D
Tritanopia (blue-blind)
#22060F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #20041e;
/* rgb */ color: rgb(32, 4, 30);
/* oklch */ color: oklch(17.8% 0.065 330.8);
Tailwind
colors: {
  custom: {
    50: '#5b4859',
    500: '#20041e',
    950: '#000000',
  },
}
SCSS
$custom: #20041e;
$custom-light: #5b4859;
$custom-dark: #000000;
JSON
{
  "hex": "#20041e",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 30
  },
  "hsl": {
    "h": 304.286,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.17811,
    "c": 0.06498,
    "h": 330.8
  },
  "luminance": 0.00488
}

Semantic roles & 50–950 ramp

primary
#20041E
secondary
#1D6322
accent
#F44134
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #20041E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#20041E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva