#21032E#21032E

#21032E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.085 H 313.5°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#21032E
RGBrgb(33, 3, 46)
HSLhsl(282, 88%, 10%)
HSVhsv(282, 93%, 18%)
CMYKcmyk(28.3%, 93.5%, 0%, 82%)
CIE-LABlab(5.29, 23.11, -21.15)
CIE-LCHlch(5.29, 31.33, 317.53°)
OKLaboklab(19.15% 0.0585 -0.0617)
OKLCHoklch(19.15% 0.085 313.5)
XYZxyz(1.1528, 0.5858, 2.6366)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21032E #102E03
analogous
#0B032E #21032E #2E0326
triadic
#21032E #2E2103 #032E21
tetradic
#21032E #2E0B03 #102E03 #03262E
square
#21032E #2E0B03 #102E03 #03262E
split-complementary
#21032E #262E03 #032E0B
monochromatic
#15021D #15021D #21032E #4A0767 #730AA1

Accessibility & contrast

On white

18.80
#21032E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#21032E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21032E
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21032E#FFFFFF#000000##FFFFFF
##21032E1.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#200C18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21032e;
/* rgb */ color: rgb(33, 3, 46);
/* oklch */ color: oklch(19.1% 0.085 313.5);
Tailwind
colors: {
  custom: {
    50: '#5e4767',
    500: '#21032e',
    950: '#000000',
  },
}
SCSS
$custom: #21032e;
$custom-light: #5e4767;
$custom-dark: #000000;
JSON
{
  "hex": "#21032e",
  "rgb": {
    "r": 33,
    "g": 3,
    "b": 46
  },
  "hsl": {
    "h": 281.86,
    "s": 87.755,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19147,
    "c": 0.08506,
    "h": 313.5
  },
  "luminance": 0.00586
}

Semantic roles & 50–950 ramp

primary
#21032E
secondary
#35721B
accent
#FE2A6A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21032E

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

Preview Lab → · Contrast checker → · Palette generator →

#21032E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva