#22072E#22072E

#22072E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.077 H 313.5°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#22072E
RGBrgb(34, 7, 46)
HSLhsl(282, 74%, 10%)
HSVhsv(282, 85%, 18%)
CMYKcmyk(26.1%, 84.8%, 0%, 82%)
CIE-LABlab(6.23, 21.54, -19.66)
CIE-LCHlch(6.23, 29.16, 317.62°)
OKLaboklab(20.01% 0.0532 -0.0562)
OKLCHoklch(20.01% 0.077 313.5)
XYZxyz(1.2287, 0.6893, 2.6526)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22072E #132E07
analogous
#0E072E #22072E #2E0726
triadic
#22072E #2E2207 #072E22
tetradic
#22072E #2E0E07 #132E07 #07262E
square
#22072E #2E0E07 #132E07 #07262E
split-complementary
#22072E #262E07 #072E0E
monochromatic
#14041B #14041B #22072E #490F63 #711798

Accessibility & contrast

On white

18.46
#22072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#22072E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22072E
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22072E#FFFFFF#000000##FFFFFF
##22072E1.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#05142D
Tritanopia (blue-blind)
#210F19
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #22072e;
/* rgb */ color: rgb(34, 7, 46);
/* oklch */ color: oklch(20.0% 0.077 313.5);
Tailwind
colors: {
  custom: {
    50: '#5f4967',
    500: '#22072e',
    950: '#000000',
  },
}
SCSS
$custom: #22072e;
$custom-light: #5f4967;
$custom-dark: #000000;
JSON
{
  "hex": "#22072e",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 281.538,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.2001,
    "c": 0.07739,
    "h": 313.5
  },
  "luminance": 0.00689
}

Semantic roles & 50–950 ramp

primary
#22072E
secondary
#3A6E23
accent
#F03870
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #22072E

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

Preview Lab → · Contrast checker → · Palette generator →

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