#22071F#22071F

#22071F is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.9% C 0.060 H 332.2°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#22071F
RGBrgb(34, 7, 31)
HSLhsl(307, 66%, 8%)
HSVhsv(307, 79%, 13%)
CMYKcmyk(0%, 79.4%, 8.8%, 86.7%)
CIE-LABlab(5.34, 16.96, -9.60)
CIE-LCHlch(5.34, 19.49, 330.50°)
OKLaboklab(18.86% 0.0531 -0.028)
OKLCHoklch(18.86% 0.06 332.2)
XYZxyz(0.9830, 0.5910, 1.3584)
Luminance0.0059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22071F #07220A
analogous
#170722 #22071F #220711
triadic
#22071F #1F2207 #071F22
tetradic
#22071F #221707 #07220A #071122
square
#22071F #221707 #07220A #071122
split-complementary
#22071F #112207 #072217
monochromatic
#190517 #190517 #22071F #55114D #881C7C

Accessibility & contrast

On white

18.78
#22071F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#22071F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22071F
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22071F#FFFFFF#000000##FFFFFF
##22071F1.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#060F20
Deuteranopia (green-blind)
#0E131E
Tritanopia (blue-blind)
#240911
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #22071f;
/* rgb */ color: rgb(34, 7, 31);
/* oklch */ color: oklch(18.9% 0.060 332.2);
Tailwind
colors: {
  custom: {
    50: '#5d495a',
    500: '#22071f',
    950: '#000000',
  },
}
SCSS
$custom: #22071f;
$custom-light: #5d495a;
$custom-dark: #000000;
JSON
{
  "hex": "#22071f",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 31
  },
  "hsl": {
    "h": 306.667,
    "s": 65.854,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18858,
    "c": 0.06002,
    "h": 332.2
  },
  "luminance": 0.00591
}

Semantic roles & 50–950 ramp

primary
#22071F
secondary
#24612B
accent
#E9523F
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040103
muted
#797778

Preview Lab

Preview with #22071F

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

Preview Lab → · Contrast checker → · Palette generator →

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