#22052B#22052B

#22052B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.4% C 0.078 H 317.1°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#22052B
RGBrgb(34, 5, 43)
HSLhsl(286, 79%, 9%)
HSVhsv(286, 88%, 17%)
CMYKcmyk(20.9%, 88.4%, 0%, 83.1%)
CIE-LABlab(5.63, 21.56, -18.35)
CIE-LCHlch(5.63, 28.31, 319.59°)
OKLaboklab(19.41% 0.0571 -0.053)
OKLCHoklch(19.41% 0.078 317.1)
XYZxyz(1.1499, 0.6231, 2.3447)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22052B #0E2B05
analogous
#0F052B #22052B #2B0521
triadic
#22052B #2B2205 #052B22
tetradic
#22052B #2B0F05 #0E2B05 #05212B
square
#22052B #2B0F05 #0E2B05 #05212B
split-complementary
#22052B #212B05 #052B0F
monochromatic
#16031B #16031B #22052B #4D0B62 #791299

Accessibility & contrast

On white

18.67
#22052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22052B
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22052B#FFFFFF#000000##FFFFFF
##22052B1.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)
#00112C
Deuteranopia (green-blind)
#06132A
Tritanopia (blue-blind)
#220C17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22052b;
/* rgb */ color: rgb(34, 5, 43);
/* oklch */ color: oklch(19.4% 0.078 317.1);
Tailwind
colors: {
  custom: {
    50: '#5e4864',
    500: '#22052b',
    950: '#000000',
  },
}
SCSS
$custom: #22052b;
$custom-light: #5e4864;
$custom-dark: #000000;
JSON
{
  "hex": "#22052b",
  "rgb": {
    "r": 34,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 285.789,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.19409,
    "c": 0.07789,
    "h": 317.1
  },
  "luminance": 0.00623
}

Semantic roles & 50–950 ramp

primary
#22052B
secondary
#326D1F
accent
#F63260
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #22052B

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

Preview Lab → · Contrast checker → · Palette generator →

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