#20022F#20022F

#20022F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.9% C 0.088 H 311.6°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#20022F
RGBrgb(32, 2, 47)
HSLhsl(280, 92%, 10%)
HSVhsv(280, 96%, 18%)
CMYKcmyk(31.9%, 95.7%, 0%, 81.6%)
CIE-LABlab(5.02, 23.52, -22.34)
CIE-LCHlch(5.02, 32.44, 316.48°)
OKLaboklab(18.88% 0.0584 -0.0657)
OKLCHoklch(18.88% 0.088 311.6)
XYZxyz(1.1304, 0.5558, 2.7365)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20022F #112F02
analogous
#0A022F #20022F #2F0228
triadic
#20022F #2F2002 #022F20
tetradic
#20022F #2F0A02 #112F02 #02282F
square
#20022F #2F0A02 #112F02 #02282F
split-complementary
#20022F #282F02 #022F0A
monochromatic
#14011D #14011D #20022F #48046A #7007A4

Accessibility & contrast

On white

18.90
#20022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#20022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20022F
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20022F#FFFFFF#000000##FFFFFF
##20022F1.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1E0C18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #20022f;
/* rgb */ color: rgb(32, 2, 47);
/* oklch */ color: oklch(18.9% 0.088 311.6);
Tailwind
colors: {
  custom: {
    50: '#5d4768',
    500: '#20022f',
    950: '#000000',
  },
}
SCSS
$custom: #20022f;
$custom-light: #5d4768;
$custom-dark: #000000;
JSON
{
  "hex": "#20022f",
  "rgb": {
    "r": 32,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 280,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18885,
    "c": 0.08792,
    "h": 311.6
  },
  "luminance": 0.00556
}

Semantic roles & 50–950 ramp

primary
#20022F
secondary
#377419
accent
#FF2970
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #20022F

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

Preview Lab → · Contrast checker → · Palette generator →

#20022F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva