#22042A#22042A

#22042A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.079 H 318.5°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#22042A
RGBrgb(34, 4, 42)
HSLhsl(287, 83%, 9%)
HSVhsv(287, 90%, 16%)
CMYKcmyk(19%, 90.5%, 0%, 83.5%)
CIE-LABlab(5.37, 21.72, -18.01)
CIE-LCHlch(5.37, 28.21, 320.33°)
OKLaboklab(19.14% 0.0591 -0.0523)
OKLCHoklch(19.14% 0.079 318.5)
XYZxyz(1.1210, 0.5941, 2.2457)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22042A #0C2A04
analogous
#0F042A #22042A #2A041F
triadic
#22042A #2A2204 #042A22
tetradic
#22042A #2A0F04 #0C2A04 #041F2A
square
#22042A #2A0F04 #0C2A04 #041F2A
split-complementary
#22042A #1F2A04 #042A0F
monochromatic
#17031C #17031C #22042A #4F0962 #7C0F9A

Accessibility & contrast

On white

18.77
#22042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#22042A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22042A
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22042A#FFFFFF#000000##FFFFFF
##22042A1.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#051329
Tritanopia (blue-blind)
#220B16
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22042a;
/* rgb */ color: rgb(34, 4, 42);
/* oklch */ color: oklch(19.1% 0.079 318.5);
Tailwind
colors: {
  custom: {
    50: '#5e4863',
    500: '#22042a',
    950: '#000000',
  },
}
SCSS
$custom: #22042a;
$custom-light: #5e4863;
$custom-dark: #000000;
JSON
{
  "hex": "#22042a",
  "rgb": {
    "r": 34,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 287.368,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.19144,
    "c": 0.07896,
    "h": 318.5
  },
  "luminance": 0.00594
}

Semantic roles & 50–950 ramp

primary
#22042A
secondary
#2E6D1D
accent
#F92F59
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #22042A

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

Preview Lab → · Contrast checker → · Palette generator →

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