#21022B#21022B

#21022B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.7% C 0.084 H 316.7°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#21022B
RGBrgb(33, 2, 43)
HSLhsl(285, 91%, 9%)
HSVhsv(285, 95%, 17%)
CMYKcmyk(23.3%, 95.3%, 0%, 83.1%)
CIE-LABlab(4.89, 22.54, -19.53)
CIE-LCHlch(4.89, 29.82, 319.09°)
OKLaboklab(18.68% 0.0613 -0.0577)
OKLCHoklch(18.68% 0.084 316.7)
XYZxyz(1.0849, 0.5412, 2.3323)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21022B #0C2B02
analogous
#0D022B #21022B #2B0221
triadic
#21022B #2B2102 #022B21
tetradic
#21022B #2B0D02 #0C2B02 #02212B
square
#21022B #2B0D02 #0C2B02 #02212B
split-complementary
#21022B #212B02 #022B0D
monochromatic
#16011D #16011D #21022B #4E0565 #7B07A0

Accessibility & contrast

On white

18.95
#21022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#21022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21022B
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21022B#FFFFFF#000000##FFFFFF
##21022B1.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#02112A
Tritanopia (blue-blind)
#200A16
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #21022b;
/* rgb */ color: rgb(33, 2, 43);
/* oklch */ color: oklch(18.7% 0.084 316.7);
Tailwind
colors: {
  custom: {
    50: '#5d4764',
    500: '#21022b',
    950: '#000000',
  },
}
SCSS
$custom: #21022b;
$custom-light: #5d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#21022b",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 285.366,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.1868,
    "c": 0.08413,
    "h": 316.7
  },
  "luminance": 0.00541
}

Semantic roles & 50–950 ramp

primary
#21022B
secondary
#2E7019
accent
#FF295D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21022B

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

Preview Lab → · Contrast checker → · Palette generator →

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