#20042C#20042C

#20042C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.0% C 0.080 H 313.8°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#20042C
RGBrgb(32, 4, 44)
HSLhsl(282, 83%, 9%)
HSVhsv(282, 91%, 17%)
CMYKcmyk(27.3%, 90.9%, 0%, 82.7%)
CIE-LABlab(5.20, 21.49, -19.80)
CIE-LCHlch(5.20, 29.22, 317.35°)
OKLaboklab(18.97% 0.0555 -0.058)
OKLCHoklch(18.97% 0.08 313.8)
XYZxyz(1.0936, 0.5758, 2.4359)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20042C #102C04
analogous
#0C042C #20042C #2C0424
triadic
#20042C #2C2004 #042C20
tetradic
#20042C #2C0C04 #102C04 #04242C
square
#20042C #2C0C04 #102C04 #04242C
split-complementary
#20042C #242C04 #042C0C
monochromatic
#14031C #14031C #20042C #490964 #720E9C

Accessibility & contrast

On white

18.83
#20042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20042C
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20042C#FFFFFF#000000##FFFFFF
##20042C1.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#02122B
Tritanopia (blue-blind)
#1F0C17
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #20042c;
/* rgb */ color: rgb(32, 4, 44);
/* oklch */ color: oklch(19.0% 0.080 313.8);
Tailwind
colors: {
  custom: {
    50: '#5d4865',
    500: '#20042c',
    950: '#000000',
  },
}
SCSS
$custom: #20042c;
$custom-light: #5d4865;
$custom-dark: #000000;
JSON
{
  "hex": "#20042c",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 282,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18967,
    "c": 0.08027,
    "h": 313.8
  },
  "luminance": 0.00576
}

Semantic roles & 50–950 ramp

primary
#20042C
secondary
#366F1D
accent
#FA2E6B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #20042C

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

Preview Lab → · Contrast checker → · Palette generator →

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