#21052E#21052E

#21052E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.5% C 0.081 H 312.8°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#21052E
RGBrgb(33, 5, 46)
HSLhsl(281, 80%, 10%)
HSVhsv(281, 89%, 18%)
CMYKcmyk(28.3%, 89.1%, 0%, 82%)
CIE-LABlab(5.68, 22.13, -20.53)
CIE-LCHlch(5.68, 30.19, 317.15°)
OKLaboklab(19.5% 0.055 -0.0593)
OKLCHoklch(19.5% 0.081 312.8)
XYZxyz(1.1745, 0.6292, 2.6438)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21052E #122E05
analogous
#0D052E #21052E #2E0526
triadic
#21052E #2E2105 #052E21
tetradic
#21052E #2E0D05 #122E05 #05262E
square
#21052E #2E0D05 #122E05 #05262E
split-complementary
#21052E #262E05 #052E0D
monochromatic
#14031C #14031C #21052E #490B65 #70119C

Accessibility & contrast

On white

18.65
#21052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#21052E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21052E
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21052E#FFFFFF#000000##FFFFFF
##21052E1.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#02132D
Tritanopia (blue-blind)
#200E18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #21052e;
/* rgb */ color: rgb(33, 5, 46);
/* oklch */ color: oklch(19.5% 0.081 312.8);
Tailwind
colors: {
  custom: {
    50: '#5e4867',
    500: '#21052e',
    950: '#000000',
  },
}
SCSS
$custom: #21052e;
$custom-light: #5e4867;
$custom-dark: #000000;
JSON
{
  "hex": "#21052e",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 280.976,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.19502,
    "c": 0.08089,
    "h": 312.8
  },
  "luminance": 0.00629
}

Semantic roles & 50–950 ramp

primary
#21052E
secondary
#39701F
accent
#F73170
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #21052E

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

Preview Lab → · Contrast checker → · Palette generator →

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