#21051F#21051F

#21051F is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.3% C 0.064 H 330.7°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#21051F
RGBrgb(33, 5, 31)
HSLhsl(304, 74%, 7%)
HSVhsv(304, 85%, 13%)
CMYKcmyk(0%, 84.8%, 6.1%, 87.1%)
CIE-LABlab(4.80, 17.26, -10.43)
CIE-LCHlch(4.80, 20.17, 328.85°)
OKLaboklab(18.28% 0.0559 -0.0314)
OKLCHoklch(18.28% 0.064 330.7)
XYZxyz(0.9288, 0.5309, 1.3496)
Luminance0.0053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21051F #052107
analogous
#150521 #21051F #210511
triadic
#21051F #1F2105 #051F21
tetradic
#21051F #211505 #052107 #051121
square
#21051F #211505 #052107 #051121
split-complementary
#21051F #112105 #052115
monochromatic
#1B0419 #1B0419 #21051F #560D51 #8B1583

Accessibility & contrast

On white

18.98
#21051F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21051F
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21051F#FFFFFF#000000##FFFFFF
##21051F1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21051f;
/* rgb */ color: rgb(33, 5, 31);
/* oklch */ color: oklch(18.3% 0.064 330.7);
Tailwind
colors: {
  custom: {
    50: '#5c485a',
    500: '#21051f',
    950: '#000000',
  },
}
SCSS
$custom: #21051f;
$custom-light: #5c485a;
$custom-dark: #000000;
JSON
{
  "hex": "#21051f",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 31
  },
  "hsl": {
    "h": 304.286,
    "s": 73.684,
    "l": 7.451
  },
  "oklch": {
    "l": 0.18282,
    "c": 0.06411,
    "h": 330.7
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#21051F
secondary
#1F6224
accent
#F04537
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #21051F

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

Preview Lab → · Contrast checker → · Palette generator →

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