#21081E#21081E

#21081E is a very dark, muted purple. Relative luminance 0.006; OKLCH L 18.8% C 0.056 H 332.4°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#21081E
RGBrgb(33, 8, 30)
HSLhsl(307, 61%, 8%)
HSVhsv(307, 76%, 13%)
CMYKcmyk(0%, 75.8%, 9.1%, 87.1%)
CIE-LABlab(5.34, 15.68, -8.83)
CIE-LCHlch(5.34, 17.99, 330.60°)
OKLaboklab(18.8% 0.0494 -0.0258)
OKLCHoklch(18.8% 0.056 332.4)
XYZxyz(0.9484, 0.5908, 1.2921)
Luminance0.0059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21081E #08210B
analogous
#170821 #21081E #210811
triadic
#21081E #1E2108 #081E21
tetradic
#21081E #211708 #08210B #081121
square
#21081E #211708 #08210B #081121
split-complementary
#21081E #112108 #082117
monochromatic
#190616 #190616 #21081E #52144B #842078

Accessibility & contrast

On white

18.78
#21081E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#21081E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21081E
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21081E#FFFFFF#000000##FFFFFF
##21081E1.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070F1F
Deuteranopia (green-blind)
#0F131D
Tritanopia (blue-blind)
#230A11
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21081e;
/* rgb */ color: rgb(33, 8, 30);
/* oklch */ color: oklch(18.8% 0.056 332.4);
Tailwind
colors: {
  custom: {
    50: '#5c4a59',
    500: '#21081e',
    950: '#000000',
  },
}
SCSS
$custom: #21081e;
$custom-light: #5c4a59;
$custom-dark: #000000;
JSON
{
  "hex": "#21081e",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 30
  },
  "hsl": {
    "h": 307.2,
    "s": 60.976,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18796,
    "c": 0.05577,
    "h": 332.4
  },
  "luminance": 0.00591
}

Semantic roles & 50–950 ramp

primary
#21081E
secondary
#265F2D
accent
#E45744
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040103
muted
#797778

Preview Lab

Preview with #21081E

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

Preview Lab → · Contrast checker → · Palette generator →

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