#22022E#22022E

#22022E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.088 H 315.0°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#22022E
RGBrgb(34, 2, 46)
HSLhsl(284, 92%, 9%)
HSVhsv(284, 96%, 18%)
CMYKcmyk(26.1%, 95.7%, 0%, 82%)
CIE-LABlab(5.25, 24.02, -21.21)
CIE-LCHlch(5.25, 32.04, 318.54°)
OKLaboklab(19.15% 0.062 -0.0619)
OKLCHoklch(19.15% 0.088 315)
XYZxyz(1.1745, 0.5808, 2.6345)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22022E #0E2E02
analogous
#0C022E #22022E #2E0224
triadic
#22022E #2E2202 #022E22
tetradic
#22022E #2E0C02 #0E2E02 #02242E
square
#22022E #2E0C02 #0E2E02 #02242E
split-complementary
#22022E #242E02 #022E0C
monochromatic
#16011D #16011D #22022E #4D0569 #7907A3

Accessibility & contrast

On white

18.81
#22022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#22022E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22022E
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22022E#FFFFFF#000000##FFFFFF
##22022E1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#01122D
Tritanopia (blue-blind)
#210B17
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22022e;
/* rgb */ color: rgb(34, 2, 46);
/* oklch */ color: oklch(19.1% 0.088 315.0);
Tailwind
colors: {
  custom: {
    50: '#5f4767',
    500: '#22022e',
    950: '#000000',
  },
}
SCSS
$custom: #22022e;
$custom-light: #5f4767;
$custom-dark: #000000;
JSON
{
  "hex": "#22022e",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 283.636,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19146,
    "c": 0.08763,
    "h": 315
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#22022E
secondary
#327319
accent
#FF2963
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22022E

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

Preview Lab → · Contrast checker → · Palette generator →

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