#21072E#21072E

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

Color values

HEX#21072E
RGBrgb(33, 7, 46)
HSLhsl(280, 74%, 10%)
HSVhsv(280, 85%, 18%)
CMYKcmyk(28.3%, 84.8%, 0%, 82%)
CIE-LABlab(6.08, 21.15, -19.91)
CIE-LCHlch(6.08, 29.04, 316.74°)
OKLaboklab(19.84% 0.0516 -0.0571)
OKLCHoklch(19.84% 0.077 312.1)
XYZxyz(1.1962, 0.6726, 2.6510)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21072E #142E07
analogous
#0D072E #21072E #2E0727
triadic
#21072E #2E2107 #072E21
tetradic
#21072E #2E0D07 #142E07 #07272E
square
#21072E #2E0D07 #142E07 #07272E
split-complementary
#21072E #272E07 #072E0D
monochromatic
#13041B #13041B #21072E #470F63 #6D1798

Accessibility & contrast

On white

18.51
#21072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21072E
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21072E#FFFFFF#000000##FFFFFF
##21072E1.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#04142D
Tritanopia (blue-blind)
#1F0F19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21072e;
/* rgb */ color: rgb(33, 7, 46);
/* oklch */ color: oklch(19.8% 0.077 312.1);
Tailwind
colors: {
  custom: {
    50: '#5e4967',
    500: '#21072e',
    950: '#000000',
  },
}
SCSS
$custom: #21072e;
$custom-light: #5e4967;
$custom-dark: #000000;
JSON
{
  "hex": "#21072e",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 280,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19844,
    "c": 0.07695,
    "h": 312.1
  },
  "luminance": 0.00673
}

Semantic roles & 50–950 ramp

primary
#21072E
secondary
#3C6E23
accent
#F03875
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #21072E

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

Preview Lab → · Contrast checker → · Palette generator →

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