#21052A#21052A

#21052A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.076 H 316.9°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#21052A
RGBrgb(33, 5, 42)
HSLhsl(285, 79%, 9%)
HSVhsv(285, 88%, 16%)
CMYKcmyk(21.4%, 88.1%, 0%, 83.5%)
CIE-LABlab(5.41, 20.78, -17.95)
CIE-LCHlch(5.41, 27.46, 319.19°)
OKLaboklab(19.15% 0.0557 -0.0522)
OKLCHoklch(19.15% 0.076 316.9)
XYZxyz(1.0993, 0.5991, 2.2478)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21052A #0E2A05
analogous
#0F052A #21052A #2A0521
triadic
#21052A #2A2105 #052A21
tetradic
#21052A #2A0F05 #0E2A05 #05212A
square
#21052A #2A0F05 #0E2A05 #05212A
split-complementary
#21052A #212A05 #052A0F
monochromatic
#15031B #15031B #21052A #4C0C61 #771297

Accessibility & contrast

On white

18.75
#21052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21052A
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21052A#FFFFFF#000000##FFFFFF
##21052A1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#051329
Tritanopia (blue-blind)
#210C16
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #21052a;
/* rgb */ color: rgb(33, 5, 42);
/* oklch */ color: oklch(19.1% 0.076 316.9);
Tailwind
colors: {
  custom: {
    50: '#5d4863',
    500: '#21052a',
    950: '#000000',
  },
}
SCSS
$custom: #21052a;
$custom-light: #5d4863;
$custom-dark: #000000;
JSON
{
  "hex": "#21052a",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 285.405,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19146,
    "c": 0.07627,
    "h": 316.9
  },
  "luminance": 0.00599
}

Semantic roles & 50–950 ramp

primary
#21052A
secondary
#326C1F
accent
#F53362
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #21052A

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

Preview Lab → · Contrast checker → · Palette generator →

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