#220222#220222

#220222 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.1% C 0.076 H 328.2°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#220222
RGBrgb(34, 2, 34)
HSLhsl(300, 89%, 7%)
HSVhsv(300, 94%, 13%)
CMYKcmyk(0%, 94.1%, 0%, 86.7%)
CIE-LABlab(4.51, 20.06, -13.20)
CIE-LCHlch(4.51, 24.01, 326.66°)
OKLaboklab(18.1% 0.0643 -0.0399)
OKLCHoklch(18.1% 0.076 328.2)
XYZxyz(0.9701, 0.4991, 1.5583)
Luminance0.0050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220222 #022202
analogous
#120222 #220222 #220212
triadic
#220222 #222202 #022222
tetradic
#220222 #221202 #022202 #021222
square
#220222 #221202 #022202 #021222
split-complementary
#220222 #122202 #022212
monochromatic
#1D021D #1D021D #220222 #5C055C #960996

Accessibility & contrast

On white

19.09
#220222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#220222 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220222
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220222#FFFFFF#000000##FFFFFF
##2202221.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D23
Deuteranopia (green-blind)
#091121
Tritanopia (blue-blind)
#230610
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #220222;
/* rgb */ color: rgb(34, 2, 34);
/* oklch */ color: oklch(18.1% 0.076 328.2);
Tailwind
colors: {
  custom: {
    50: '#5e475d',
    500: '#220222',
    950: '#000000',
  },
}
SCSS
$custom: #220222;
$custom-light: #5e475d;
$custom-dark: #000000;
JSON
{
  "hex": "#220222",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 34
  },
  "hsl": {
    "h": 300,
    "s": 88.889,
    "l": 7.059
  },
  "oklch": {
    "l": 0.18098,
    "c": 0.07564,
    "h": 328.2
  },
  "luminance": 0.00499
}

Semantic roles & 50–950 ramp

primary
#220222
secondary
#186818
accent
#FF2929
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040004
muted
#797779

Preview Lab

Preview with #220222

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

Preview Lab → · Contrast checker → · Palette generator →

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