#20012B#20012B

#20012B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.3% C 0.086 H 315.8°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#20012B
RGBrgb(32, 1, 43)
HSLhsl(284, 95%, 9%)
HSVhsv(284, 98%, 17%)
CMYKcmyk(25.6%, 97.7%, 0%, 83.1%)
CIE-LABlab(4.55, 22.53, -20.08)
CIE-LCHlch(4.55, 30.18, 318.29°)
OKLaboklab(18.3% 0.0618 -0.06)
OKLCHoklch(18.3% 0.086 315.8)
XYZxyz(1.0425, 0.5032, 2.3273)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20012B #0C2B01
analogous
#0B012B #20012B #2B0121
triadic
#20012B #2B2001 #012B20
tetradic
#20012B #2B0B01 #0C2B01 #01212B
square
#20012B #2B0B01 #0C2B01 #01212B
split-complementary
#20012B #212B01 #012B0B
monochromatic
#16011E #16011E #20012B #4D0267 #7904A3

Accessibility & contrast

On white

19.08
#20012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#20012B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20012B
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20012B#FFFFFF#000000##FFFFFF
##20012B1.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#00112A
Tritanopia (blue-blind)
#1F0915
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #20012b;
/* rgb */ color: rgb(32, 1, 43);
/* oklch */ color: oklch(18.3% 0.086 315.8);
Tailwind
colors: {
  custom: {
    50: '#5d4664',
    500: '#20012b',
    950: '#000000',
  },
}
SCSS
$custom: #20012b;
$custom-light: #5d4664;
$custom-dark: #000000;
JSON
{
  "hex": "#20012b",
  "rgb": {
    "r": 32,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 284.286,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18299,
    "c": 0.08613,
    "h": 315.8
  },
  "luminance": 0.00503
}

Semantic roles & 50–950 ramp

primary
#20012B
secondary
#2E7117
accent
#FF2961
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #20012B

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

Preview Lab → · Contrast checker → · Palette generator →

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