#21071E#21071E

#21071E is a very dark, muted purple. Relative luminance 0.006; OKLCH L 18.6% C 0.058 H 332.3°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#21071E
RGBrgb(33, 7, 30)
HSLhsl(307, 65%, 8%)
HSVhsv(307, 79%, 13%)
CMYKcmyk(0%, 78.8%, 9.1%, 87.1%)
CIE-LABlab(5.14, 16.11, -9.13)
CIE-LCHlch(5.14, 18.51, 330.46°)
OKLaboklab(18.61% 0.0515 -0.027)
OKLCHoklch(18.61% 0.058 332.3)
XYZxyz(0.9375, 0.5691, 1.2885)
Luminance0.0057 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21071E #07210A
analogous
#170721 #21071E #210711
triadic
#21071E #1E2107 #071E21
tetradic
#21071E #211707 #07210A #071121
square
#21071E #211707 #07210A #071121
split-complementary
#21071E #112107 #072117
monochromatic
#190517 #190517 #21071E #53124C #861C7A

Accessibility & contrast

On white

18.85
#21071E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#21071E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21071E
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21071E#FFFFFF#000000##FFFFFF
##21071E1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#060F1F
Deuteranopia (green-blind)
#0E131D
Tritanopia (blue-blind)
#230911
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #21071e;
/* rgb */ color: rgb(33, 7, 30);
/* oklch */ color: oklch(18.6% 0.058 332.3);
Tailwind
colors: {
  custom: {
    50: '#5c4959',
    500: '#21071e',
    950: '#000000',
  },
}
SCSS
$custom: #21071e;
$custom-light: #5c4959;
$custom-dark: #000000;
JSON
{
  "hex": "#21071e",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 30
  },
  "hsl": {
    "h": 306.923,
    "s": 65,
    "l": 7.843
  },
  "oklch": {
    "l": 0.18606,
    "c": 0.05812,
    "h": 332.3
  },
  "luminance": 0.00569
}

Semantic roles & 50–950 ramp

primary
#21071E
secondary
#24602B
accent
#E85340
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040103
muted
#797778

Preview Lab

Preview with #21071E

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

Preview Lab → · Contrast checker → · Palette generator →

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