#22022B#22022B

#22022B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.9% C 0.085 H 318.0°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#22022B
RGBrgb(34, 2, 43)
HSLhsl(287, 91%, 9%)
HSVhsv(287, 95%, 17%)
CMYKcmyk(20.9%, 95.3%, 0%, 83.1%)
CIE-LABlab(5.04, 23.00, -19.28)
CIE-LCHlch(5.04, 30.01, 320.03°)
OKLaboklab(18.87% 0.0628 -0.0566)
OKLCHoklch(18.87% 0.085 318)
XYZxyz(1.1174, 0.5580, 2.3339)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22022B #0B2B02
analogous
#0E022B #22022B #2B0220
triadic
#22022B #2B2202 #022B22
tetradic
#22022B #2B0E02 #0B2B02 #02202B
square
#22022B #2B0E02 #0B2B02 #02202B
split-complementary
#22022B #202B02 #022B0E
monochromatic
#17011D #17011D #22022B #500565 #7E07A0

Accessibility & contrast

On white

18.89
#22022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#22022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22022B
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22022B#FFFFFF#000000##FFFFFF
##22022B1.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#03122A
Tritanopia (blue-blind)
#220916
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22022b;
/* rgb */ color: rgb(34, 2, 43);
/* oklch */ color: oklch(18.9% 0.085 318.0);
Tailwind
colors: {
  custom: {
    50: '#5e4764',
    500: '#22022b',
    950: '#000000',
  },
}
SCSS
$custom: #22022b;
$custom-light: #5e4764;
$custom-dark: #000000;
JSON
{
  "hex": "#22022b",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 286.829,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18866,
    "c": 0.08456,
    "h": 318
  },
  "luminance": 0.00558
}

Semantic roles & 50–950 ramp

primary
#22022B
secondary
#2C7019
accent
#FF2958
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #22022B

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

Preview Lab → · Contrast checker → · Palette generator →

#22022B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva