#22022F#22022F

#22022F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.089 H 314.1°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#22022F
RGBrgb(34, 2, 47)
HSLhsl(283, 92%, 10%)
HSVhsv(283, 96%, 18%)
CMYKcmyk(27.7%, 95.7%, 0%, 81.6%)
CIE-LABlab(5.32, 24.35, -21.85)
CIE-LCHlch(5.32, 32.72, 318.10°)
OKLaboklab(19.24% 0.0617 -0.0637)
OKLCHoklch(19.24% 0.089 314.1)
XYZxyz(1.1944, 0.5888, 2.7395)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22022F #0F2F02
analogous
#0C022F #22022F #2F0226
triadic
#22022F #2F2202 #022F22
tetradic
#22022F #2F0C02 #0F2F02 #02262F
square
#22022F #2F0C02 #0F2F02 #02262F
split-complementary
#22022F #262F02 #022F0C
monochromatic
#15011D #15011D #22022F #4C046A #7707A4

Accessibility & contrast

On white

18.79
#22022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22022F
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22022F#FFFFFF#000000##FFFFFF
##22022F1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#210B18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22022f;
/* rgb */ color: rgb(34, 2, 47);
/* oklch */ color: oklch(19.2% 0.089 314.1);
Tailwind
colors: {
  custom: {
    50: '#5f4768',
    500: '#22022f',
    950: '#000000',
  },
}
SCSS
$custom: #22022f;
$custom-light: #5f4768;
$custom-dark: #000000;
JSON
{
  "hex": "#22022f",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 282.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19242,
    "c": 0.08866,
    "h": 314.1
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#22022F
secondary
#337419
accent
#FF2967
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22022F

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

Preview Lab → · Contrast checker → · Palette generator →

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