#22052A#22052A

#22052A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.077 H 318.2°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#22052A
RGBrgb(34, 5, 42)
HSLhsl(287, 79%, 9%)
HSVhsv(287, 88%, 16%)
CMYKcmyk(19%, 88.1%, 0%, 83.5%)
CIE-LABlab(5.56, 21.24, -17.70)
CIE-LCHlch(5.56, 27.65, 320.19°)
OKLaboklab(19.32% 0.0572 -0.0512)
OKLCHoklch(19.32% 0.077 318.2)
XYZxyz(1.1318, 0.6158, 2.2493)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22052A #0D2A05
analogous
#10052A #22052A #2A0520
triadic
#22052A #2A2205 #052A22
tetradic
#22052A #2A1005 #0D2A05 #05202A
square
#22052A #2A1005 #0D2A05 #05202A
split-complementary
#22052A #202A05 #052A10
monochromatic
#16031B #16031B #22052A #4E0C61 #7B1297

Accessibility & contrast

On white

18.70
#22052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22052A
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22052A#FFFFFF#000000##FFFFFF
##22052A1.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)
#00102B
Deuteranopia (green-blind)
#061329
Tritanopia (blue-blind)
#220C16
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22052a;
/* rgb */ color: rgb(34, 5, 42);
/* oklch */ color: oklch(19.3% 0.077 318.2);
Tailwind
colors: {
  custom: {
    50: '#5e4863',
    500: '#22052a',
    950: '#000000',
  },
}
SCSS
$custom: #22052a;
$custom-light: #5e4863;
$custom-dark: #000000;
JSON
{
  "hex": "#22052a",
  "rgb": {
    "r": 34,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 287.027,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19324,
    "c": 0.07676,
    "h": 318.2
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#22052A
secondary
#306C1F
accent
#F5335D
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #22052A

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

Preview Lab → · Contrast checker → · Palette generator →

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