#21022F#21022F

#21022F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.088 H 312.9°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#21022F
RGBrgb(33, 2, 47)
HSLhsl(281, 92%, 10%)
HSVhsv(281, 96%, 18%)
CMYKcmyk(29.8%, 95.7%, 0%, 81.6%)
CIE-LABlab(5.17, 23.94, -22.10)
CIE-LCHlch(5.17, 32.58, 317.29°)
OKLaboklab(19.06% 0.0601 -0.0647)
OKLCHoklch(19.06% 0.088 312.9)
XYZxyz(1.1619, 0.5720, 2.7380)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21022F #102F02
analogous
#0A022F #21022F #2F0227
triadic
#21022F #2F2102 #022F21
tetradic
#21022F #2F0A02 #102F02 #02272F
square
#21022F #2F0A02 #102F02 #02272F
split-complementary
#21022F #272F02 #022F0A
monochromatic
#15011D #15011D #21022F #4A046A #7307A4

Accessibility & contrast

On white

18.84
#21022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21022F
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21022F#FFFFFF#000000##FFFFFF
##21022F1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#1F0C18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #21022f;
/* rgb */ color: rgb(33, 2, 47);
/* oklch */ color: oklch(19.1% 0.088 312.9);
Tailwind
colors: {
  custom: {
    50: '#5e4768',
    500: '#21022f',
    950: '#000000',
  },
}
SCSS
$custom: #21022f;
$custom-light: #5e4768;
$custom-dark: #000000;
JSON
{
  "hex": "#21022f",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 281.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19063,
    "c": 0.08829,
    "h": 312.9
  },
  "luminance": 0.00572
}

Semantic roles & 50–950 ramp

primary
#21022F
secondary
#357419
accent
#FF296B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21022F

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

Preview Lab → · Contrast checker → · Palette generator →

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