#22022D#22022D

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

Color values

HEX#22022D
RGBrgb(34, 2, 45)
HSLhsl(285, 91%, 9%)
HSVhsv(285, 96%, 18%)
CMYKcmyk(24.4%, 95.6%, 0%, 82.4%)
CIE-LABlab(5.18, 23.68, -20.58)
CIE-LCHlch(5.18, 31.37, 319.01°)
OKLaboklab(19.05% 0.0623 -0.0602)
OKLCHoklch(19.05% 0.087 316)
XYZxyz(1.1550, 0.5730, 2.5319)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22022D #0D2D02
analogous
#0D022D #22022D #2D0223
triadic
#22022D #2D2202 #022D22
tetradic
#22022D #2D0D02 #0D2D02 #02232D
square
#22022D #2D0D02 #0D2D02 #02232D
split-complementary
#22022D #232D02 #022D0D
monochromatic
#16011D #16011D #22022D #4E0568 #7B07A2

Accessibility & contrast

On white

18.84
#22022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22022D
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22022D#FFFFFF#000000##FFFFFF
##22022D1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#01122C
Tritanopia (blue-blind)
#210A17
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22022d;
/* rgb */ color: rgb(34, 2, 45);
/* oklch */ color: oklch(19.1% 0.087 316.0);
Tailwind
colors: {
  custom: {
    50: '#5f4766',
    500: '#22022d',
    950: '#000000',
  },
}
SCSS
$custom: #22022d;
$custom-light: #5f4766;
$custom-dark: #000000;
JSON
{
  "hex": "#22022d",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 284.651,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19051,
    "c": 0.08661,
    "h": 316
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#22022D
secondary
#307219
accent
#FF2960
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22022D

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

Preview Lab → · Contrast checker → · Palette generator →

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