#21052C#21052C

#21052C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.079 H 314.8°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#21052C
RGBrgb(33, 5, 44)
HSLhsl(283, 80%, 10%)
HSVhsv(283, 89%, 17%)
CMYKcmyk(25%, 88.6%, 0%, 82.7%)
CIE-LABlab(5.54, 21.45, -19.25)
CIE-LCHlch(5.54, 28.82, 318.10°)
OKLaboklab(19.32% 0.0553 -0.0558)
OKLCHoklch(19.32% 0.079 314.8)
XYZxyz(1.1360, 0.6138, 2.4410)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21052C #102C05
analogous
#0E052C #21052C #2C0524
triadic
#21052C #2C2105 #052C21
tetradic
#21052C #2C0E05 #102C05 #05242C
square
#21052C #2C0E05 #102C05 #05242C
split-complementary
#21052C #242C05 #052C0E
monochromatic
#15031B #15031B #21052C #4A0B63 #73119A

Accessibility & contrast

On white

18.70
#21052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#21052C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21052C
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21052C#FFFFFF#000000##FFFFFF
##21052C1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#04132B
Tritanopia (blue-blind)
#200D17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21052c;
/* rgb */ color: rgb(33, 5, 44);
/* oklch */ color: oklch(19.3% 0.079 314.8);
Tailwind
colors: {
  custom: {
    50: '#5e4865',
    500: '#21052c',
    950: '#000000',
  },
}
SCSS
$custom: #21052c;
$custom-light: #5e4865;
$custom-dark: #000000;
JSON
{
  "hex": "#21052c",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 283.077,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19321,
    "c": 0.07857,
    "h": 314.8
  },
  "luminance": 0.00614
}

Semantic roles & 50–950 ramp

primary
#21052C
secondary
#356E1F
accent
#F63269
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #21052C

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

Preview Lab → · Contrast checker → · Palette generator →

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