#20012F#20012F

#20012F is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.7% C 0.090 H 312.0°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#20012F
RGBrgb(32, 1, 47)
HSLhsl(280, 96%, 9%)
HSVhsv(280, 98%, 18%)
CMYKcmyk(31.9%, 97.9%, 0%, 81.6%)
CIE-LABlab(4.82, 24.00, -22.65)
CIE-LCHlch(4.82, 33.00, 316.66°)
OKLaboklab(18.7% 0.0603 -0.067)
OKLCHoklch(18.7% 0.09 312)
XYZxyz(1.1195, 0.5341, 2.7329)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20012F #102F01
analogous
#09012F #20012F #2F0127
triadic
#20012F #2F2001 #012F20
tetradic
#20012F #2F0901 #102F01 #01272F
square
#20012F #2F0901 #102F01 #01272F
split-complementary
#20012F #272F01 #012F09
monochromatic
#14011E #14011E #20012F #49026B #7204A7

Accessibility & contrast

On white

18.97
#20012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20012F
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20012F#FFFFFF#000000##FFFFFF
##20012F1.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20012f;
/* rgb */ color: rgb(32, 1, 47);
/* oklch */ color: oklch(18.7% 0.090 312.0);
Tailwind
colors: {
  custom: {
    50: '#5d4668',
    500: '#20012f',
    950: '#000000',
  },
}
SCSS
$custom: #20012f;
$custom-light: #5d4668;
$custom-dark: #000000;
JSON
{
  "hex": "#20012f",
  "rgb": {
    "r": 32,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 280.435,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18698,
    "c": 0.09015,
    "h": 312
  },
  "luminance": 0.00534
}

Semantic roles & 50–950 ramp

primary
#20012F
secondary
#367517
accent
#FF296F
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #20012F

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

Preview Lab → · Contrast checker → · Palette generator →

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