#21021E#21021E

#21021E is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.6% C 0.071 H 332.2°. Best body text is #FFFFFF at 19.23:1 contrast (WCAG AA passes).

Color values

HEX#21021E
RGBrgb(33, 2, 30)
HSLhsl(306, 89%, 7%)
HSVhsv(306, 94%, 13%)
CMYKcmyk(0%, 93.9%, 9.1%, 87.1%)
CIE-LABlab(4.16, 18.22, -10.60)
CIE-LCHlch(4.16, 21.08, 329.81°)
OKLaboklab(17.59% 0.063 -0.0333)
OKLCHoklch(17.59% 0.071 332.2)
XYZxyz(0.8833, 0.4606, 1.2704)
Luminance0.0046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21021E #022105
analogous
#150221 #21021E #21020F
triadic
#21021E #1E2102 #021E21
tetradic
#21021E #211502 #022105 #020F21
square
#21021E #211502 #022105 #020F21
split-complementary
#21021E #0F2102 #022115
monochromatic
#1D021A #1D021A #21021E #5B0552 #940987

Accessibility & contrast

On white

19.23
#21021E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#21021E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21021E
19.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21021E#FFFFFF#000000##FFFFFF
##21021E1.0019.231.0919.23
#FFFFFF19.231.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010B1F
Deuteranopia (green-blind)
#0A101D
Tritanopia (blue-blind)
#23040E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #21021e;
/* rgb */ color: rgb(33, 2, 30);
/* oklch */ color: oklch(17.6% 0.071 332.2);
Tailwind
colors: {
  custom: {
    50: '#5c4759',
    500: '#21021e',
    950: '#000000',
  },
}
SCSS
$custom: #21021e;
$custom-light: #5c4759;
$custom-dark: #000000;
JSON
{
  "hex": "#21021e",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 30
  },
  "hsl": {
    "h": 305.806,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.17587,
    "c": 0.07126,
    "h": 332.2
  },
  "luminance": 0.0046
}

Semantic roles & 50–950 ramp

primary
#21021E
secondary
#186720
accent
#FF3E29
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #21021E

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

Preview Lab → · Contrast checker → · Palette generator →

#21021E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva