#22042E#22042E

#22042E is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.5% C 0.083 H 314.4°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#22042E
RGBrgb(34, 4, 46)
HSLhsl(283, 84%, 10%)
HSVhsv(283, 91%, 18%)
CMYKcmyk(26.1%, 91.3%, 0%, 82%)
CIE-LABlab(5.64, 23.03, -20.59)
CIE-LCHlch(5.64, 30.90, 318.21°)
OKLaboklab(19.5% 0.0583 -0.0595)
OKLCHoklch(19.5% 0.083 314.4)
XYZxyz(1.1962, 0.6242, 2.6417)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22042E #102E04
analogous
#0D042E #22042E #2E0425
triadic
#22042E #2E2204 #042E22
tetradic
#22042E #2E0D04 #102E04 #04252E
square
#22042E #2E0D04 #102E04 #04252E
split-complementary
#22042E #252E04 #042E0D
monochromatic
#15021C #15021C #22042E #4C0966 #750E9F

Accessibility & contrast

On white

18.67
#22042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22042E
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22042E#FFFFFF#000000##FFFFFF
##22042E1.0018.671.1218.67
#FFFFFF18.671.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#02132D
Tritanopia (blue-blind)
#210D18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22042e;
/* rgb */ color: rgb(34, 4, 46);
/* oklch */ color: oklch(19.5% 0.083 314.4);
Tailwind
colors: {
  custom: {
    50: '#5f4867',
    500: '#22042e',
    950: '#000000',
  },
}
SCSS
$custom: #22042e;
$custom-light: #5f4867;
$custom-dark: #000000;
JSON
{
  "hex": "#22042e",
  "rgb": {
    "r": 34,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 282.857,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19501,
    "c": 0.08336,
    "h": 314.4
  },
  "luminance": 0.00624
}

Semantic roles & 50–950 ramp

primary
#22042E
secondary
#35711D
accent
#FA2E68
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22042E

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

Preview Lab → · Contrast checker → · Palette generator →

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