#21001F#21001F

#21001F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.2% C 0.078 H 330.9°. Best body text is #FFFFFF at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#21001F
RGBrgb(33, 0, 31)
HSLhsl(304, 100%, 6%)
HSVhsv(304, 100%, 13%)
CMYKcmyk(0%, 100%, 6.1%, 87.1%)
CIE-LABlab(3.81, 19.36, -11.91)
CIE-LCHlch(3.81, 22.74, 328.40°)
OKLaboklab(17.22% 0.0683 -0.0381)
OKLCHoklch(17.22% 0.078 330.9)
XYZxyz(0.8745, 0.4223, 1.3315)
Luminance0.0042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21001F #002102
analogous
#130021 #21001F #21000F
triadic
#21001F #1F2100 #001F21
tetradic
#21001F #211300 #002102 #000F21
square
#21001F #211300 #002102 #000F21
split-complementary
#21001F #0F2100 #002113
monochromatic
#1F001D #1F001D #21001F #5E0058 #9B0092

Accessibility & contrast

On white

19.37
#21001F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#21001F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21001F
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21001F#FFFFFF#000000##FFFFFF
##21001F1.0019.371.0819.37
#FFFFFF19.371.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#080F1E
Tritanopia (blue-blind)
#23030E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #21001f;
/* rgb */ color: rgb(33, 0, 31);
/* oklch */ color: oklch(17.2% 0.078 330.9);
Tailwind
colors: {
  custom: {
    50: '#5c465a',
    500: '#21001f',
    950: '#000000',
  },
}
SCSS
$custom: #21001f;
$custom-light: #5c465a;
$custom-dark: #000000;
JSON
{
  "hex": "#21001f",
  "rgb": {
    "r": 33,
    "g": 0,
    "b": 31
  },
  "hsl": {
    "h": 303.636,
    "s": 100,
    "l": 6.471
  },
  "oklch": {
    "l": 0.17222,
    "c": 0.07816,
    "h": 330.9
  },
  "luminance": 0.00422
}

Semantic roles & 50–950 ramp

primary
#21001F
secondary
#136A18
accent
#FF3629
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040004
muted
#797779

Preview Lab

Preview with #21001F

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

Preview Lab → · Contrast checker → · Palette generator →

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