#20041C#20041C

#20041C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.7% C 0.063 H 333.9°. Best body text is #FFFFFF at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#20041C
RGBrgb(32, 4, 28)
HSLhsl(309, 78%, 7%)
HSVhsv(309, 88%, 13%)
CMYKcmyk(0%, 87.5%, 12.5%, 87.5%)
CIE-LABlab(4.32, 16.16, -8.80)
CIE-LCHlch(4.32, 18.40, 331.43°)
OKLaboklab(17.67% 0.0565 -0.0277)
OKLCHoklch(17.67% 0.063 333.9)
XYZxyz(0.8487, 0.4778, 1.1459)
Luminance0.0048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20041C #042008
analogous
#160420 #20041C #20040E
triadic
#20041C #1C2004 #041C20
tetradic
#20041C #201604 #042008 #040E20
square
#20041C #201604 #042008 #040E20
split-complementary
#20041C #0E2004 #042016
monochromatic
#1B0318 #1B0318 #20041C #560B4C #8D127B

Accessibility & contrast

On white

19.17
#20041C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20041C
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20041C#FFFFFF#000000##FFFFFF
##20041C1.0019.171.1019.17
#FFFFFF19.171.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040C1D
Deuteranopia (green-blind)
#0C111B
Tritanopia (blue-blind)
#22060E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #20041c;
/* rgb */ color: rgb(32, 4, 28);
/* oklch */ color: oklch(17.7% 0.063 333.9);
Tailwind
colors: {
  custom: {
    50: '#5b4858',
    500: '#20041c',
    950: '#000000',
  },
}
SCSS
$custom: #20041c;
$custom-light: #5b4858;
$custom-dark: #000000;
JSON
{
  "hex": "#20041c",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 28
  },
  "hsl": {
    "h": 308.571,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.17671,
    "c": 0.06296,
    "h": 333.9
  },
  "luminance": 0.00478
}

Semantic roles & 50–950 ramp

primary
#20041C
secondary
#1D6327
accent
#F44F34
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #20041C

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

Preview Lab → · Contrast checker → · Palette generator →

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