#22052F#22052F

#22052F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.8% C 0.082 H 313.1°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#22052F
RGBrgb(34, 5, 47)
HSLhsl(281, 81%, 10%)
HSVhsv(281, 89%, 18%)
CMYKcmyk(27.7%, 89.4%, 0%, 81.6%)
CIE-LABlab(5.91, 22.87, -20.91)
CIE-LCHlch(5.91, 30.99, 317.56°)
OKLaboklab(19.76% 0.0564 -0.0602)
OKLCHoklch(19.76% 0.082 313.1)
XYZxyz(1.2270, 0.6539, 2.7504)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22052F #122F05
analogous
#0D052F #22052F #2F0527
triadic
#22052F #2F2205 #052F22
tetradic
#22052F #2F0D05 #122F05 #05272F
square
#22052F #2F0D05 #122F05 #05272F
split-complementary
#22052F #272F05 #052F0D
monochromatic
#14031C #14031C #22052F #4A0B66 #72119E

Accessibility & contrast

On white

18.57
#22052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22052F
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22052F#FFFFFF#000000##FFFFFF
##22052F1.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#02142E
Tritanopia (blue-blind)
#210E19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #22052f;
/* rgb */ color: rgb(34, 5, 47);
/* oklch */ color: oklch(19.8% 0.082 313.1);
Tailwind
colors: {
  custom: {
    50: '#5f4868',
    500: '#22052f',
    950: '#000000',
  },
}
SCSS
$custom: #22052f;
$custom-light: #5f4868;
$custom-dark: #000000;
JSON
{
  "hex": "#22052f",
  "rgb": {
    "r": 34,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 281.429,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19764,
    "c": 0.08245,
    "h": 313.1
  },
  "luminance": 0.00654
}

Semantic roles & 50–950 ramp

primary
#22052F
secondary
#38711F
accent
#F7316E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #22052F

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

Preview Lab → · Contrast checker → · Palette generator →

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