#20042D#20042D

#20042D is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.081 H 312.8°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#20042D
RGBrgb(32, 4, 45)
HSLhsl(281, 84%, 10%)
HSVhsv(281, 91%, 18%)
CMYKcmyk(28.9%, 91.1%, 0%, 82.4%)
CIE-LABlab(5.27, 21.85, -20.44)
CIE-LCHlch(5.27, 29.92, 316.90°)
OKLaboklab(19.06% 0.0553 -0.0597)
OKLCHoklch(19.06% 0.081 312.8)
XYZxyz(1.1126, 0.5834, 2.5361)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20042D #112D04
analogous
#0C042D #20042D #2D0426
triadic
#20042D #2D2004 #042D20
tetradic
#20042D #2D0C04 #112D04 #04262D
square
#20042D #2D0C04 #112D04 #04262D
split-complementary
#20042D #262D04 #042D0C
monochromatic
#14021C #14021C #20042D #480965 #700E9D

Accessibility & contrast

On white

18.81
#20042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20042D
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20042D#FFFFFF#000000##FFFFFF
##20042D1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#01122C
Tritanopia (blue-blind)
#1F0D18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #20042d;
/* rgb */ color: rgb(32, 4, 45);
/* oklch */ color: oklch(19.1% 0.081 312.8);
Tailwind
colors: {
  custom: {
    50: '#5d4866',
    500: '#20042d',
    950: '#000000',
  },
}
SCSS
$custom: #20042d;
$custom-light: #5d4866;
$custom-dark: #000000;
JSON
{
  "hex": "#20042d",
  "rgb": {
    "r": 32,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 280.976,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1906,
    "c": 0.08141,
    "h": 312.8
  },
  "luminance": 0.00583
}

Semantic roles & 50–950 ramp

primary
#20042D
secondary
#37701D
accent
#FA2E6F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #20042D

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

Preview Lab → · Contrast checker → · Palette generator →

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