#22022C#22022C

#22022C is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.0% C 0.086 H 317.0°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#22022C
RGBrgb(34, 2, 44)
HSLhsl(286, 91%, 9%)
HSVhsv(286, 95%, 17%)
CMYKcmyk(22.7%, 95.5%, 0%, 82.7%)
CIE-LABlab(5.11, 23.34, -19.93)
CIE-LCHlch(5.11, 30.69, 319.50°)
OKLaboklab(18.96% 0.0626 -0.0584)
OKLCHoklch(18.96% 0.086 317)
XYZxyz(1.1359, 0.5654, 2.4317)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22022C #0C2C02
analogous
#0D022C #22022C #2C0221
triadic
#22022C #2C2202 #022C22
tetradic
#22022C #2C0D02 #0C2C02 #02212C
square
#22022C #2C0D02 #0C2C02 #02212C
split-complementary
#22022C #212C02 #022C0D
monochromatic
#17011D #17011D #22022C #4F0567 #7C07A1

Accessibility & contrast

On white

18.87
#22022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22022C
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22022C#FFFFFF#000000##FFFFFF
##22022C1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#02122B
Tritanopia (blue-blind)
#210A16
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22022c;
/* rgb */ color: rgb(34, 2, 44);
/* oklch */ color: oklch(19.0% 0.086 317.0);
Tailwind
colors: {
  custom: {
    50: '#5f4765',
    500: '#22022c',
    950: '#000000',
  },
}
SCSS
$custom: #22022c;
$custom-light: #5f4765;
$custom-dark: #000000;
JSON
{
  "hex": "#22022c",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 285.714,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18958,
    "c": 0.08558,
    "h": 317
  },
  "luminance": 0.00565
}

Semantic roles & 50–950 ramp

primary
#22022C
secondary
#2E7119
accent
#FF295C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050005
muted
#79777A

Preview Lab

Preview with #22022C

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

Preview Lab → · Contrast checker → · Palette generator →

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