#22031F#22031F

#22031F is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.1% C 0.070 H 332.1°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#22031F
RGBrgb(34, 3, 31)
HSLhsl(306, 84%, 7%)
HSVhsv(306, 91%, 13%)
CMYKcmyk(0%, 91.2%, 8.8%, 86.7%)
CIE-LABlab(4.55, 18.71, -10.78)
CIE-LCHlch(4.55, 21.60, 330.05°)
OKLaboklab(18.08% 0.0619 -0.0328)
OKLCHoklch(18.08% 0.07 332.1)
XYZxyz(0.9396, 0.5042, 1.3439)
Luminance0.0050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22031F #032206
analogous
#160322 #22031F #220310
triadic
#22031F #1F2203 #031F22
tetradic
#22031F #221603 #032206 #031022
square
#22031F #221603 #032206 #031022
split-complementary
#22031F #102203 #032216
monochromatic
#1C021A #1C021A #22031F #5A0852 #920D86

Accessibility & contrast

On white

19.08
#22031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#22031F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22031F
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22031F#FFFFFF#000000##FFFFFF
##22031F1.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020D20
Deuteranopia (green-blind)
#0C111E
Tritanopia (blue-blind)
#24050F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #22031f;
/* rgb */ color: rgb(34, 3, 31);
/* oklch */ color: oklch(18.1% 0.070 332.1);
Tailwind
colors: {
  custom: {
    50: '#5d475a',
    500: '#22031f',
    950: '#000000',
  },
}
SCSS
$custom: #22031f;
$custom-light: #5d475a;
$custom-dark: #000000;
JSON
{
  "hex": "#22031f",
  "rgb": {
    "r": 34,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 305.806,
    "s": 83.784,
    "l": 7.255
  },
  "oklch": {
    "l": 0.18075,
    "c": 0.07007,
    "h": 332.1
  },
  "luminance": 0.00504
}

Semantic roles & 50–950 ramp

primary
#22031F
secondary
#1B6622
accent
#FA412E
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040003
muted
#797778

Preview Lab

Preview with #22031F

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

Preview Lab → · Contrast checker → · Palette generator →

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