#21012B#21012B

#21012B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.5% C 0.087 H 317.1°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#21012B
RGBrgb(33, 1, 43)
HSLhsl(286, 95%, 9%)
HSVhsv(286, 98%, 17%)
CMYKcmyk(23.3%, 97.7%, 0%, 83.1%)
CIE-LABlab(4.69, 23.01, -19.84)
CIE-LCHlch(4.69, 30.38, 319.23°)
OKLaboklab(18.49% 0.0633 -0.0589)
OKLCHoklch(18.49% 0.087 317.1)
XYZxyz(1.0740, 0.5195, 2.3287)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21012B #0B2B01
analogous
#0C012B #21012B #2B0120
triadic
#21012B #2B2101 #012B21
tetradic
#21012B #2B0C01 #0B2B01 #01202B
square
#21012B #2B0C01 #0B2B01 #01202B
split-complementary
#21012B #202B01 #012B0C
monochromatic
#17011E #17011E #21012B #4F0267 #7D04A3

Accessibility & contrast

On white

19.03
#21012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21012B
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21012B#FFFFFF#000000##FFFFFF
##21012B1.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#01112A
Tritanopia (blue-blind)
#200915
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #21012b;
/* rgb */ color: rgb(33, 1, 43);
/* oklch */ color: oklch(18.5% 0.087 317.1);
Tailwind
colors: {
  custom: {
    50: '#5d4664',
    500: '#21012b',
    950: '#000000',
  },
}
SCSS
$custom: #21012b;
$custom-light: #5d4664;
$custom-dark: #000000;
JSON
{
  "hex": "#21012b",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 285.714,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18487,
    "c": 0.08652,
    "h": 317.1
  },
  "luminance": 0.00519
}

Semantic roles & 50–950 ramp

primary
#21012B
secondary
#2C7117
accent
#FF295C
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21012B

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

Preview Lab → · Contrast checker → · Palette generator →

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