#21051E#21051E

#21051E is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.2% C 0.063 H 332.2°. Best body text is #FFFFFF at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#21051E
RGBrgb(33, 5, 30)
HSLhsl(306, 74%, 7%)
HSVhsv(306, 85%, 13%)
CMYKcmyk(0%, 84.8%, 9.1%, 87.1%)
CIE-LABlab(4.75, 16.96, -9.72)
CIE-LCHlch(4.75, 19.55, 330.19°)
OKLaboklab(18.21% 0.0558 -0.0294)
OKLCHoklch(18.21% 0.063 332.2)
XYZxyz(0.9158, 0.5257, 1.2813)
Luminance0.0053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21051E #052108
analogous
#160521 #21051E #210510
triadic
#21051E #1E2105 #051E21
tetradic
#21051E #211605 #052108 #051021
square
#21051E #211605 #052108 #051021
split-complementary
#21051E #102105 #052116
monochromatic
#1B0418 #1B0418 #21051E #560D4E #8B157F

Accessibility & contrast

On white

19.00
#21051E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#21051E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21051E
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21051E#FFFFFF#000000##FFFFFF
##21051E1.0019.001.1119.00
#FFFFFF19.001.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF19.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040E1F
Deuteranopia (green-blind)
#0D121D
Tritanopia (blue-blind)
#230710
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #21051e;
/* rgb */ color: rgb(33, 5, 30);
/* oklch */ color: oklch(18.2% 0.063 332.2);
Tailwind
colors: {
  custom: {
    50: '#5c4859',
    500: '#21051e',
    950: '#000000',
  },
}
SCSS
$custom: #21051e;
$custom-light: #5c4859;
$custom-dark: #000000;
JSON
{
  "hex": "#21051e",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 30
  },
  "hsl": {
    "h": 306.429,
    "s": 73.684,
    "l": 7.451
  },
  "oklch": {
    "l": 0.18212,
    "c": 0.06308,
    "h": 332.2
  },
  "luminance": 0.00526
}

Semantic roles & 50–950 ramp

primary
#21051E
secondary
#1F6227
accent
#F04B37
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #21051E

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

Preview Lab → · Contrast checker → · Palette generator →

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