#20042B#20042B

#20042B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.9% C 0.079 H 314.8°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#20042B
RGBrgb(32, 4, 43)
HSLhsl(283, 83%, 9%)
HSVhsv(283, 91%, 17%)
CMYKcmyk(25.6%, 90.7%, 0%, 83.1%)
CIE-LABlab(5.13, 21.14, -19.15)
CIE-LCHlch(5.13, 28.53, 317.83°)
OKLaboklab(18.88% 0.0558 -0.0562)
OKLCHoklch(18.88% 0.079 314.8)
XYZxyz(1.0751, 0.5684, 2.3381)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20042B #0F2B04
analogous
#0D042B #20042B #2B0423
triadic
#20042B #2B2004 #042B20
tetradic
#20042B #2B0D04 #0F2B04 #04232B
square
#20042B #2B0D04 #0F2B04 #04232B
split-complementary
#20042B #232B04 #042B0D
monochromatic
#15031C #15031C #20042B #4A0963 #730E9B

Accessibility & contrast

On white

18.86
#20042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#20042B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20042B
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20042B#FFFFFF#000000##FFFFFF
##20042B1.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#03122A
Tritanopia (blue-blind)
#1F0C16
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #20042b;
/* rgb */ color: rgb(32, 4, 43);
/* oklch */ color: oklch(18.9% 0.079 314.8);
Tailwind
colors: {
  custom: {
    50: '#5d4864',
    500: '#20042b',
    950: '#000000',
  },
}
SCSS
$custom: #20042b;
$custom-light: #5d4864;
$custom-dark: #000000;
JSON
{
  "hex": "#20042b",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 283.077,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18875,
    "c": 0.07915,
    "h": 314.8
  },
  "luminance": 0.00568
}

Semantic roles & 50–950 ramp

primary
#20042B
secondary
#346E1D
accent
#F92E68
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #20042B

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

Preview Lab → · Contrast checker → · Palette generator →

#20042B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva