#21022A#21022A

#21022A is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.083 H 317.8°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#21022A
RGBrgb(33, 2, 42)
HSLhsl(287, 91%, 9%)
HSVhsv(287, 95%, 16%)
CMYKcmyk(21.4%, 95.2%, 0%, 83.5%)
CIE-LABlab(4.82, 22.19, -18.87)
CIE-LCHlch(4.82, 29.13, 319.62°)
OKLaboklab(18.59% 0.0615 -0.0559)
OKLCHoklch(18.59% 0.083 317.8)
XYZxyz(1.0668, 0.5340, 2.2369)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21022A #0B2A02
analogous
#0D022A #21022A #2A021F
triadic
#21022A #2A2102 #022A21
tetradic
#21022A #2A0D02 #0B2A02 #021F2A
square
#21022A #2A0D02 #0B2A02 #021F2A
split-complementary
#21022A #1F2A02 #022A0D
monochromatic
#17011D #17011D #21022A #4F0564 #7D089F

Accessibility & contrast

On white

18.97
#21022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21022A
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21022A#FFFFFF#000000##FFFFFF
##21022A1.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#031129
Tritanopia (blue-blind)
#210915
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #21022a;
/* rgb */ color: rgb(33, 2, 42);
/* oklch */ color: oklch(18.6% 0.083 317.8);
Tailwind
colors: {
  custom: {
    50: '#5d4764',
    500: '#21022a',
    950: '#000000',
  },
}
SCSS
$custom: #21022a;
$custom-light: #5d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#21022a",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 286.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18587,
    "c": 0.0831,
    "h": 317.8
  },
  "luminance": 0.00534
}

Semantic roles & 50–950 ramp

primary
#21022A
secondary
#2C6F19
accent
#FF2959
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #21022A

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

Preview Lab → · Contrast checker → · Palette generator →

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