#20042E#20042E

#20042E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.083 H 311.8°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#20042E
RGBrgb(32, 4, 46)
HSLhsl(280, 84%, 10%)
HSVhsv(280, 91%, 18%)
CMYKcmyk(30.4%, 91.3%, 0%, 82%)
CIE-LABlab(5.34, 22.20, -21.08)
CIE-LCHlch(5.34, 30.62, 316.48°)
OKLaboklab(19.15% 0.0551 -0.0615)
OKLCHoklch(19.15% 0.083 311.8)
XYZxyz(1.1321, 0.5912, 2.6387)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20042E #122E04
analogous
#0B042E #20042E #2E0427
triadic
#20042E #2E2004 #042E20
tetradic
#20042E #2E0B04 #122E04 #04272E
square
#20042E #2E0B04 #122E04 #04272E
split-complementary
#20042E #272E04 #042E0B
monochromatic
#14021C #14021C #20042E #470966 #6E0E9F

Accessibility & contrast

On white

18.78
#20042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#20042E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20042E
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20042E#FFFFFF#000000##FFFFFF
##20042E1.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#1E0D18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #20042e;
/* rgb */ color: rgb(32, 4, 46);
/* oklch */ color: oklch(19.2% 0.083 311.8);
Tailwind
colors: {
  custom: {
    50: '#5d4867',
    500: '#20042e',
    950: '#000000',
  },
}
SCSS
$custom: #20042e;
$custom-light: #5d4867;
$custom-dark: #000000;
JSON
{
  "hex": "#20042e",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 280,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19154,
    "c": 0.08255,
    "h": 311.8
  },
  "luminance": 0.00591
}

Semantic roles & 50–950 ramp

primary
#20042E
secondary
#39711D
accent
#FA2E72
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #20042E

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

Preview Lab → · Contrast checker → · Palette generator →

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