#21022C#21022C

#21022C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.8% C 0.085 H 315.7°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#21022C
RGBrgb(33, 2, 44)
HSLhsl(284, 91%, 9%)
HSVhsv(284, 95%, 17%)
CMYKcmyk(25%, 95.5%, 0%, 82.7%)
CIE-LABlab(4.96, 22.89, -20.18)
CIE-LCHlch(4.96, 30.52, 318.60°)
OKLaboklab(18.77% 0.061 -0.0594)
OKLCHoklch(18.77% 0.085 315.7)
XYZxyz(1.1035, 0.5486, 2.4302)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21022C #0D2C02
analogous
#0C022C #21022C #2C0222
triadic
#21022C #2C2102 #022C21
tetradic
#21022C #2C0C02 #0D2C02 #02222C
square
#21022C #2C0C02 #0D2C02 #02222C
split-complementary
#21022C #222C02 #022C0C
monochromatic
#16011D #16011D #21022C #4D0567 #7907A1

Accessibility & contrast

On white

18.92
#21022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21022C
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21022C#FFFFFF#000000##FFFFFF
##21022C1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#01122B
Tritanopia (blue-blind)
#200A16
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #21022c;
/* rgb */ color: rgb(33, 2, 44);
/* oklch */ color: oklch(18.8% 0.085 315.7);
Tailwind
colors: {
  custom: {
    50: '#5e4765',
    500: '#21022c',
    950: '#000000',
  },
}
SCSS
$custom: #21022c;
$custom-light: #5e4765;
$custom-dark: #000000;
JSON
{
  "hex": "#21022c",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 284.286,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18773,
    "c": 0.08516,
    "h": 315.7
  },
  "luminance": 0.00549
}

Semantic roles & 50–950 ramp

primary
#21022C
secondary
#307119
accent
#FF2961
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21022C

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

Preview Lab → · Contrast checker → · Palette generator →

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