#221822#221822

#221822 is a very dark, muted purple. Relative luminance 0.011; OKLCH L 22.6% C 0.024 H 326.3°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#221822
RGBrgb(34, 24, 34)
HSLhsl(300, 17%, 11%)
HSVhsv(300, 29%, 13%)
CMYKcmyk(0%, 29.4%, 0%, 86.7%)
CIE-LABlab(9.87, 7.30, -4.99)
CIE-LCHlch(9.87, 8.85, 325.65°)
OKLaboklab(22.58% 0.0202 -0.0134)
OKLCHoklch(22.58% 0.024 326.3)
XYZxyz(1.2750, 1.1089, 1.6599)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221822 #182218
analogous
#1D1822 #221822 #22181D
triadic
#221822 #222218 #182222
tetradic
#221822 #221D18 #182218 #181D22
square
#221822 #221D18 #182218 #181D22
split-complementary
#221822 #1D2218 #18221D
monochromatic
#120D12 #120D12 #221822 #463146 #6A4B6A

Accessibility & contrast

On white

17.19
#221822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#221822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221822
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221822#FFFFFF#000000##FFFFFF
##2218221.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171A22
Deuteranopia (green-blind)
#1A1C22
Tritanopia (blue-blind)
#23191B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #221822;
/* rgb */ color: rgb(34, 24, 34);
/* oklch */ color: oklch(22.6% 0.024 326.3);
Tailwind
colors: {
  custom: {
    50: '#5d545d',
    500: '#221822',
    950: '#000000',
  },
}
SCSS
$custom: #221822;
$custom-light: #5d545d;
$custom-dark: #000000;
JSON
{
  "hex": "#221822",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 34
  },
  "hsl": {
    "h": 300,
    "s": 17.241,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22584,
    "c": 0.02423,
    "h": 326.3
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#221822
secondary
#425442
accent
#BA6E6E
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040204
muted
#797879

Preview Lab

Preview with #221822

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

Preview Lab → · Contrast checker → · Palette generator →

#221822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva