#21072A#21072A

#21072A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.5% C 0.072 H 316.2°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#21072A
RGBrgb(33, 7, 42)
HSLhsl(285, 71%, 10%)
HSVhsv(285, 83%, 16%)
CMYKcmyk(21.4%, 83.3%, 0%, 83.5%)
CIE-LABlab(5.80, 19.83, -17.33)
CIE-LCHlch(5.80, 26.34, 318.85°)
OKLaboklab(19.5% 0.052 -0.0498)
OKLCHoklch(19.5% 0.072 316.2)
XYZxyz(1.1210, 0.6425, 2.2550)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21072A #102A07
analogous
#0F072A #21072A #2A0722
triadic
#21072A #2A2107 #072A21
tetradic
#21072A #2A0F07 #102A07 #07222A
square
#21072A #2A0F07 #102A07 #07222A
split-complementary
#21072A #222A07 #072A0F
monochromatic
#15041A #15041A #21072A #4A105E #731893

Accessibility & contrast

On white

18.61
#21072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#21072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21072A
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21072A#FFFFFF#000000##FFFFFF
##21072A1.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#071429
Tritanopia (blue-blind)
#200D17
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21072a;
/* rgb */ color: rgb(33, 7, 42);
/* oklch */ color: oklch(19.5% 0.072 316.2);
Tailwind
colors: {
  custom: {
    50: '#5d4963',
    500: '#21072a',
    950: '#000000',
  },
}
SCSS
$custom: #21072a;
$custom-light: #5d4963;
$custom-dark: #000000;
JSON
{
  "hex": "#21072a",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 284.571,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19501,
    "c": 0.07206,
    "h": 316.2
  },
  "luminance": 0.00642
}

Semantic roles & 50–950 ramp

primary
#21072A
secondary
#356A23
accent
#EE3A68
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #21072A

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

Preview Lab → · Contrast checker → · Palette generator →

#21072A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva