#22022A#22022A

#22022A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.8% C 0.084 H 319.0°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#22022A
RGBrgb(34, 2, 42)
HSLhsl(288, 91%, 9%)
HSVhsv(288, 95%, 16%)
CMYKcmyk(19%, 95.2%, 0%, 83.5%)
CIE-LABlab(4.97, 22.67, -18.63)
CIE-LCHlch(4.97, 29.34, 320.59°)
OKLaboklab(18.77% 0.0631 -0.0548)
OKLCHoklch(18.77% 0.084 319)
XYZxyz(1.0993, 0.5507, 2.2384)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22022A #0A2A02
analogous
#0E022A #22022A #2A021E
triadic
#22022A #2A2202 #022A22
tetradic
#22022A #2A0E02 #0A2A02 #021E2A
square
#22022A #2A0E02 #0A2A02 #021E2A
split-complementary
#22022A #1E2A02 #022A0E
monochromatic
#18011D #18011D #22022A #510564 #81089F

Accessibility & contrast

On white

18.92
#22022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22022A
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22022A#FFFFFF#000000##FFFFFF
##22022A1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2B
Deuteranopia (green-blind)
#041229
Tritanopia (blue-blind)
#220915
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22022a;
/* rgb */ color: rgb(34, 2, 42);
/* oklch */ color: oklch(18.8% 0.084 319.0);
Tailwind
colors: {
  custom: {
    50: '#5e4764',
    500: '#22022a',
    950: '#000000',
  },
}
SCSS
$custom: #22022a;
$custom-light: #5e4764;
$custom-dark: #000000;
JSON
{
  "hex": "#22022a",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 288,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18775,
    "c": 0.08355,
    "h": 319
  },
  "luminance": 0.00551
}

Semantic roles & 50–950 ramp

primary
#22022A
secondary
#2A6F19
accent
#FF2954
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #22022A

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

Preview Lab → · Contrast checker → · Palette generator →

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