#21072C#21072C

#21072C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.7% C 0.074 H 314.1°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#21072C
RGBrgb(33, 7, 44)
HSLhsl(282, 73%, 10%)
HSVhsv(282, 84%, 17%)
CMYKcmyk(25%, 84.1%, 0%, 82.7%)
CIE-LABlab(5.94, 20.49, -18.63)
CIE-LCHlch(5.94, 27.69, 317.72°)
OKLaboklab(19.67% 0.0519 -0.0535)
OKLCHoklch(19.67% 0.075 314.1)
XYZxyz(1.1577, 0.6572, 2.4482)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21072C #122C07
analogous
#0E072C #21072C #2C0725
triadic
#21072C #2C2107 #072C21
tetradic
#21072C #2C0E07 #122C07 #07252C
square
#21072C #2C0E07 #122C07 #07252C
split-complementary
#21072C #252C07 #072C0E
monochromatic
#14041A #14041A #21072C #490F61 #701896

Accessibility & contrast

On white

18.56
#21072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21072C
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21072C#FFFFFF#000000##FFFFFF
##21072C1.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#06142B
Tritanopia (blue-blind)
#200E18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21072c;
/* rgb */ color: rgb(33, 7, 44);
/* oklch */ color: oklch(19.7% 0.074 314.1);
Tailwind
colors: {
  custom: {
    50: '#5e4965',
    500: '#21072c',
    950: '#000000',
  },
}
SCSS
$custom: #21072c;
$custom-light: #5e4965;
$custom-dark: #000000;
JSON
{
  "hex": "#21072c",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 282.162,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.1967,
    "c": 0.0745,
    "h": 314.1
  },
  "luminance": 0.00657
}

Semantic roles & 50–950 ramp

primary
#21072C
secondary
#396C23
accent
#EF396F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #21072C

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

Preview Lab → · Contrast checker → · Palette generator →

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