#22042D#22042D

#22042D is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.4% C 0.082 H 315.4°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#22042D
RGBrgb(34, 4, 45)
HSLhsl(284, 84%, 10%)
HSVhsv(284, 91%, 18%)
CMYKcmyk(24.4%, 91.1%, 0%, 82.4%)
CIE-LABlab(5.57, 22.70, -19.95)
CIE-LCHlch(5.57, 30.23, 318.69°)
OKLaboklab(19.41% 0.0586 -0.0578)
OKLCHoklch(19.41% 0.082 315.4)
XYZxyz(1.1767, 0.6164, 2.5391)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22042D #0F2D04
analogous
#0D042D #22042D #2D0424
triadic
#22042D #2D2204 #042D22
tetradic
#22042D #2D0D04 #0F2D04 #04242D
square
#22042D #2D0D04 #0F2D04 #04242D
split-complementary
#22042D #242D04 #042D0D
monochromatic
#15021C #15021C #22042D #4C0965 #770E9D

Accessibility & contrast

On white

18.70
#22042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22042D
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22042D#FFFFFF#000000##FFFFFF
##22042D1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#03132C
Tritanopia (blue-blind)
#210C18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22042d;
/* rgb */ color: rgb(34, 4, 45);
/* oklch */ color: oklch(19.4% 0.082 315.4);
Tailwind
colors: {
  custom: {
    50: '#5f4866',
    500: '#22042d',
    950: '#000000',
  },
}
SCSS
$custom: #22042d;
$custom-light: #5f4866;
$custom-dark: #000000;
JSON
{
  "hex": "#22042d",
  "rgb": {
    "r": 34,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 283.902,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1941,
    "c": 0.08225,
    "h": 315.4
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#22042D
secondary
#33701D
accent
#FA2E65
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22042D

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

Preview Lab → · Contrast checker → · Palette generator →

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