#20012C#20012C

#20012C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.4% C 0.087 H 314.8°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#20012C
RGBrgb(32, 1, 44)
HSLhsl(283, 96%, 9%)
HSVhsv(283, 98%, 17%)
CMYKcmyk(27.3%, 97.7%, 0%, 82.7%)
CIE-LABlab(4.61, 22.90, -20.73)
CIE-LCHlch(4.61, 30.89, 317.84°)
OKLaboklab(18.4% 0.0614 -0.0618)
OKLCHoklch(18.4% 0.087 314.8)
XYZxyz(1.0611, 0.5107, 2.4251)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20012C #0D2C01
analogous
#0B012C #20012C #2C0123
triadic
#20012C #2C2001 #012C20
tetradic
#20012C #2C0B01 #0D2C01 #01232C
square
#20012C #2C0B01 #0D2C01 #01232C
split-complementary
#20012C #232C01 #012C0B
monochromatic
#16011E #16011E #20012C #4C0268 #7704A4

Accessibility & contrast

On white

19.05
#20012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20012C
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20012C#FFFFFF#000000##FFFFFF
##20012C1.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#1F0916
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #20012c;
/* rgb */ color: rgb(32, 1, 44);
/* oklch */ color: oklch(18.4% 0.087 314.8);
Tailwind
colors: {
  custom: {
    50: '#5d4665',
    500: '#20012c',
    950: '#000000',
  },
}
SCSS
$custom: #20012c;
$custom-light: #5d4665;
$custom-dark: #000000;
JSON
{
  "hex": "#20012c",
  "rgb": {
    "r": 32,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 283.256,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18397,
    "c": 0.08712,
    "h": 314.8
  },
  "luminance": 0.00511
}

Semantic roles & 50–950 ramp

primary
#20012C
secondary
#307217
accent
#FF2965
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #20012C

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

Preview Lab → · Contrast checker → · Palette generator →

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