#22012D#22012D

#22012D is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 18.9% C 0.089 H 316.3°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#22012D
RGBrgb(34, 1, 45)
HSLhsl(285, 96%, 9%)
HSVhsv(285, 98%, 18%)
CMYKcmyk(24.4%, 97.8%, 0%, 82.4%)
CIE-LABlab(4.98, 24.16, -20.89)
CIE-LCHlch(4.98, 31.94, 319.16°)
OKLaboklab(18.87% 0.0643 -0.0614)
OKLCHoklch(18.87% 0.089 316.3)
XYZxyz(1.1441, 0.5513, 2.5283)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22012D #0C2D01
analogous
#0C012D #22012D #2D0122
triadic
#22012D #2D2201 #012D22
tetradic
#22012D #2D0C01 #0C2D01 #01222D
square
#22012D #2D0C01 #0C2D01 #01222D
split-complementary
#22012D #222D01 #012D0C
monochromatic
#17011E #17011E #22012D #4F0269 #7C04A5

Accessibility & contrast

On white

18.92
#22012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#22012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22012D
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22012D#FFFFFF#000000##FFFFFF
##22012D1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#01122C
Tritanopia (blue-blind)
#210A16
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22012d;
/* rgb */ color: rgb(34, 1, 45);
/* oklch */ color: oklch(18.9% 0.089 316.3);
Tailwind
colors: {
  custom: {
    50: '#5f4666',
    500: '#22012d',
    950: '#000000',
  },
}
SCSS
$custom: #22012d;
$custom-light: #5f4666;
$custom-dark: #000000;
JSON
{
  "hex": "#22012d",
  "rgb": {
    "r": 34,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 285,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18867,
    "c": 0.08888,
    "h": 316.3
  },
  "luminance": 0.00551
}

Semantic roles & 50–950 ramp

primary
#22012D
secondary
#2E7317
accent
#FF295E
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#050006
muted
#79767A

Preview Lab

Preview with #22012D

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

Preview Lab → · Contrast checker → · Palette generator →

#22012D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva