#21011F#21011F

#21011F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.4% C 0.075 H 330.8°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#21011F
RGBrgb(33, 1, 31)
HSLhsl(304, 94%, 7%)
HSVhsv(304, 97%, 13%)
CMYKcmyk(0%, 97%, 6.1%, 87.1%)
CIE-LABlab(4.01, 18.95, -11.62)
CIE-LCHlch(4.01, 22.23, 328.49°)
OKLaboklab(17.44% 0.0656 -0.0366)
OKLCHoklch(17.44% 0.075 330.8)
XYZxyz(0.8854, 0.4440, 1.3351)
Luminance0.0044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21011F #012103
analogous
#130121 #21011F #21010F
triadic
#21011F #1F2101 #011F21
tetradic
#21011F #211301 #012103 #010F21
square
#21011F #211301 #012103 #010F21
split-complementary
#21011F #0F2101 #012113
monochromatic
#1E011C #1E011C #21011F #5C0357 #98058F

Accessibility & contrast

On white

19.29
#21011F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#21011F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21011F
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21011F#FFFFFF#000000##FFFFFF
##21011F1.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B20
Deuteranopia (green-blind)
#09101E
Tritanopia (blue-blind)
#23040E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #21011f;
/* rgb */ color: rgb(33, 1, 31);
/* oklch */ color: oklch(17.4% 0.075 330.8);
Tailwind
colors: {
  custom: {
    50: '#5c465a',
    500: '#21011f',
    950: '#000000',
  },
}
SCSS
$custom: #21011f;
$custom-light: #5c465a;
$custom-dark: #000000;
JSON
{
  "hex": "#21011f",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 31
  },
  "hsl": {
    "h": 303.75,
    "s": 94.118,
    "l": 6.667
  },
  "oklch": {
    "l": 0.17444,
    "c": 0.07512,
    "h": 330.8
  },
  "luminance": 0.00444
}

Semantic roles & 50–950 ramp

primary
#21011F
secondary
#15681B
accent
#FF3629
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040004
muted
#797779

Preview Lab

Preview with #21011F

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

Preview Lab → · Contrast checker → · Palette generator →

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