#22072F#22072F

#22072F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.079 H 312.5°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#22072F
RGBrgb(34, 7, 47)
HSLhsl(281, 74%, 11%)
HSVhsv(281, 85%, 18%)
CMYKcmyk(27.7%, 85.1%, 0%, 81.6%)
CIE-LABlab(6.30, 21.87, -20.29)
CIE-LCHlch(6.30, 29.83, 317.14°)
OKLaboklab(20.1% 0.0531 -0.058)
OKLCHoklch(20.1% 0.079 312.5)
XYZxyz(1.2487, 0.6973, 2.7576)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22072F #142F07
analogous
#0E072F #22072F #2F0728
triadic
#22072F #2F2207 #072F22
tetradic
#22072F #2F0E07 #142F07 #07282F
square
#22072F #2F0E07 #142F07 #07282F
split-complementary
#22072F #282F07 #072F0E
monochromatic
#13041B #13041B #22072F #490F64 #6F179A

Accessibility & contrast

On white

18.43
#22072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22072F
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22072F#FFFFFF#000000##FFFFFF
##22072F1.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#04152E
Tritanopia (blue-blind)
#210F1A
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #22072f;
/* rgb */ color: rgb(34, 7, 47);
/* oklch */ color: oklch(20.1% 0.079 312.5);
Tailwind
colors: {
  custom: {
    50: '#5f4968',
    500: '#22072f',
    950: '#000000',
  },
}
SCSS
$custom: #22072f;
$custom-light: #5f4968;
$custom-dark: #000000;
JSON
{
  "hex": "#22072f",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 280.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20097,
    "c": 0.0786,
    "h": 312.5
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#22072F
secondary
#3C6F23
accent
#F13773
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #22072F

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

Preview Lab → · Contrast checker → · Palette generator →

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