#22042F#22042F

#22042F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.6% C 0.084 H 313.5°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#22042F
RGBrgb(34, 4, 47)
HSLhsl(282, 84%, 10%)
HSVhsv(282, 91%, 18%)
CMYKcmyk(27.7%, 91.5%, 0%, 81.6%)
CIE-LABlab(5.71, 23.36, -21.22)
CIE-LCHlch(5.71, 31.57, 317.75°)
OKLaboklab(19.59% 0.0581 -0.0613)
OKLCHoklch(19.59% 0.084 313.5)
XYZxyz(1.2161, 0.6322, 2.7467)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22042F #112F04
analogous
#0C042F #22042F #2F0427
triadic
#22042F #2F2204 #042F22
tetradic
#22042F #2F0C04 #112F04 #04272F
square
#22042F #2F0C04 #112F04 #04272F
split-complementary
#22042F #272F04 #042F0C
monochromatic
#14021C #14021C #22042F #4B0967 #740EA0

Accessibility & contrast

On white

18.64
#22042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#22042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22042F
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22042F#FFFFFF#000000##FFFFFF
##22042F1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#210D19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #22042f;
/* rgb */ color: rgb(34, 4, 47);
/* oklch */ color: oklch(19.6% 0.084 313.5);
Tailwind
colors: {
  custom: {
    50: '#5f4868',
    500: '#22042f',
    950: '#000000',
  },
}
SCSS
$custom: #22042f;
$custom-light: #5f4868;
$custom-dark: #000000;
JSON
{
  "hex": "#22042f",
  "rgb": {
    "r": 34,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 281.86,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.19593,
    "c": 0.08446,
    "h": 313.5
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#22042F
secondary
#37721D
accent
#FB2D6B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22042F

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

Preview Lab → · Contrast checker → · Palette generator →

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