#21072B#21072B

#21072B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.6% C 0.073 H 315.2°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#21072B
RGBrgb(33, 7, 43)
HSLhsl(283, 72%, 10%)
HSVhsv(283, 84%, 17%)
CMYKcmyk(23.3%, 83.7%, 0%, 83.1%)
CIE-LABlab(5.87, 20.16, -17.98)
CIE-LCHlch(5.87, 27.02, 318.27°)
OKLaboklab(19.59% 0.052 -0.0517)
OKLCHoklch(19.59% 0.073 315.2)
XYZxyz(1.1392, 0.6497, 2.3504)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21072B #112B07
analogous
#0F072B #21072B #2B0723
triadic
#21072B #2B2107 #072B21
tetradic
#21072B #2B0F07 #112B07 #07232B
square
#21072B #2B0F07 #112B07 #07232B
split-complementary
#21072B #232B07 #072B0F
monochromatic
#14041A #14041A #21072B #491060 #721894

Accessibility & contrast

On white

18.58
#21072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21072B
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21072B#FFFFFF#000000##FFFFFF
##21072B1.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#06142A
Tritanopia (blue-blind)
#200E18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21072b;
/* rgb */ color: rgb(33, 7, 43);
/* oklch */ color: oklch(19.6% 0.073 315.2);
Tailwind
colors: {
  custom: {
    50: '#5d4964',
    500: '#21072b',
    950: '#000000',
  },
}
SCSS
$custom: #21072b;
$custom-light: #5d4964;
$custom-dark: #000000;
JSON
{
  "hex": "#21072b",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 283.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19585,
    "c": 0.07328,
    "h": 315.2
  },
  "luminance": 0.0065
}

Semantic roles & 50–950 ramp

primary
#21072B
secondary
#376B23
accent
#EF396C
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21072B

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

Preview Lab → · Contrast checker → · Palette generator →

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