#21011E#21011E

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

Color values

HEX#21011E
RGBrgb(33, 1, 30)
HSLhsl(306, 94%, 7%)
HSVhsv(306, 97%, 13%)
CMYKcmyk(0%, 97%, 9.1%, 87.1%)
CIE-LABlab(3.96, 18.63, -10.90)
CIE-LCHlch(3.96, 21.59, 329.68°)
OKLaboklab(17.37% 0.0656 -0.0347)
OKLCHoklch(17.37% 0.074 332.1)
XYZxyz(0.8724, 0.4389, 1.2668)
Luminance0.0044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21011E #012104
analogous
#140121 #21011E #21010E
triadic
#21011E #1E2101 #011E21
tetradic
#21011E #211401 #012104 #010E21
square
#21011E #211401 #012104 #010E21
split-complementary
#21011E #0E2101 #012114
monochromatic
#1E011B #1E011B #21011E #5C0354 #98058A

Accessibility & contrast

On white

19.31
#21011E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21011E
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21011E#FFFFFF#000000##FFFFFF
##21011E1.0019.311.0919.31
#FFFFFF19.311.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B1F
Deuteranopia (green-blind)
#0A101D
Tritanopia (blue-blind)
#23030E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #21011e;
/* rgb */ color: rgb(33, 1, 30);
/* oklch */ color: oklch(17.4% 0.074 332.1);
Tailwind
colors: {
  custom: {
    50: '#5c4659',
    500: '#21011e',
    950: '#000000',
  },
}
SCSS
$custom: #21011e;
$custom-light: #5c4659;
$custom-dark: #000000;
JSON
{
  "hex": "#21011e",
  "rgb": {
    "r": 33,
    "g": 1,
    "b": 30
  },
  "hsl": {
    "h": 305.625,
    "s": 94.118,
    "l": 6.667
  },
  "oklch": {
    "l": 0.17368,
    "c": 0.07422,
    "h": 332.1
  },
  "luminance": 0.00439
}

Semantic roles & 50–950 ramp

primary
#21011E
secondary
#15681D
accent
#FF3D29
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040003
muted
#797778

Preview Lab

Preview with #21011E

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

Preview Lab → · Contrast checker → · Palette generator →

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