#21072D#21072D

#21072D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.8% C 0.076 H 313.1°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#21072D
RGBrgb(33, 7, 45)
HSLhsl(281, 73%, 10%)
HSVhsv(281, 84%, 18%)
CMYKcmyk(26.7%, 84.4%, 0%, 82.4%)
CIE-LABlab(6.01, 20.82, -19.27)
CIE-LCHlch(6.01, 28.37, 317.21°)
OKLaboklab(19.76% 0.0517 -0.0553)
OKLCHoklch(19.76% 0.076 313.1)
XYZxyz(1.1767, 0.6648, 2.5484)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21072D #132D07
analogous
#0E072D #21072D #2D0726
triadic
#21072D #2D2107 #072D21
tetradic
#21072D #2D0E07 #132D07 #07262D
square
#21072D #2D0E07 #132D07 #07262D
split-complementary
#21072D #262D07 #072D0E
monochromatic
#13041A #13041A #21072D #480F62 #6F1797

Accessibility & contrast

On white

18.53
#21072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21072D
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21072D#FFFFFF#000000##FFFFFF
##21072D1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#05142C
Tritanopia (blue-blind)
#200F19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21072d;
/* rgb */ color: rgb(33, 7, 45);
/* oklch */ color: oklch(19.8% 0.076 313.1);
Tailwind
colors: {
  custom: {
    50: '#5e4966',
    500: '#21072d',
    950: '#000000',
  },
}
SCSS
$custom: #21072d;
$custom-light: #5e4966;
$custom-dark: #000000;
JSON
{
  "hex": "#21072d",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 281.053,
    "s": 73.077,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19756,
    "c": 0.07572,
    "h": 313.1
  },
  "luminance": 0.00665
}

Semantic roles & 50–950 ramp

primary
#21072D
secondary
#3A6D23
accent
#F03872
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21072D

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

Preview Lab → · Contrast checker → · Palette generator →

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