#20012A#20012A

#20012A is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.2% C 0.085 H 316.8°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#20012A
RGBrgb(32, 1, 42)
HSLhsl(285, 95%, 8%)
HSVhsv(285, 98%, 16%)
CMYKcmyk(23.8%, 97.6%, 0%, 83.5%)
CIE-LABlab(4.48, 22.17, -19.42)
CIE-LCHlch(4.48, 29.47, 318.77°)
OKLaboklab(18.2% 0.0621 -0.0582)
OKLCHoklch(18.2% 0.085 316.8)
XYZxyz(1.0244, 0.4960, 2.2318)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20012A #0B2A01
analogous
#0B012A #20012A #2A011F
triadic
#20012A #2A2001 #012A20
tetradic
#20012A #2A0B01 #0B2A01 #011F2A
square
#20012A #2A0B01 #0B2A01 #011F2A
split-complementary
#20012A #1F2A01 #012A0B
monochromatic
#17011E #17011E #20012A #4E0266 #7B04A2

Accessibility & contrast

On white

19.10
#20012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20012A
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20012A#FFFFFF#000000##FFFFFF
##20012A1.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#011029
Tritanopia (blue-blind)
#1F0815
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #20012a;
/* rgb */ color: rgb(32, 1, 42);
/* oklch */ color: oklch(18.2% 0.085 316.8);
Tailwind
colors: {
  custom: {
    50: '#5c4664',
    500: '#20012a',
    950: '#000000',
  },
}
SCSS
$custom: #20012a;
$custom-light: #5c4664;
$custom-dark: #000000;
JSON
{
  "hex": "#20012a",
  "rgb": {
    "r": 32,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 285.366,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18203,
    "c": 0.08513,
    "h": 316.8
  },
  "luminance": 0.00496
}

Semantic roles & 50–950 ramp

primary
#20012A
secondary
#2C7016
accent
#FF295D
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #20012A

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

Preview Lab → · Contrast checker → · Palette generator →

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