#22072A#22072A

#22072A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.7% C 0.073 H 317.6°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#22072A
RGBrgb(34, 7, 42)
HSLhsl(286, 71%, 10%)
HSVhsv(286, 83%, 16%)
CMYKcmyk(19%, 83.3%, 0%, 83.5%)
CIE-LABlab(5.96, 20.27, -17.08)
CIE-LCHlch(5.96, 26.51, 319.88°)
OKLaboklab(19.67% 0.0536 -0.0489)
OKLCHoklch(19.67% 0.073 317.6)
XYZxyz(1.1535, 0.6593, 2.2565)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22072A #0F2A07
analogous
#11072A #22072A #2A0721
triadic
#22072A #2A2207 #072A22
tetradic
#22072A #2A1107 #0F2A07 #07212A
square
#22072A #2A1107 #0F2A07 #07212A
split-complementary
#22072A #212A07 #072A11
monochromatic
#15041A #15041A #22072A #4C105E #771893

Accessibility & contrast

On white

18.55
#22072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#22072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22072A
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22072A#FFFFFF#000000##FFFFFF
##22072A1.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#081429
Tritanopia (blue-blind)
#220D17
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #22072a;
/* rgb */ color: rgb(34, 7, 42);
/* oklch */ color: oklch(19.7% 0.073 317.6);
Tailwind
colors: {
  custom: {
    50: '#5e4963',
    500: '#22072a',
    950: '#000000',
  },
}
SCSS
$custom: #22072a;
$custom-light: #5e4963;
$custom-dark: #000000;
JSON
{
  "hex": "#22072a",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 286.286,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19673,
    "c": 0.07258,
    "h": 317.6
  },
  "luminance": 0.00659
}

Semantic roles & 50–950 ramp

primary
#22072A
secondary
#336A23
accent
#EE3A63
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #22072A

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

Preview Lab → · Contrast checker → · Palette generator →

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