#22012A#22012A

#22012A is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.086 H 319.3°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#22012A
RGBrgb(34, 1, 42)
HSLhsl(288, 95%, 8%)
HSVhsv(288, 98%, 16%)
CMYKcmyk(19%, 97.6%, 0%, 83.5%)
CIE-LABlab(4.78, 23.14, -18.93)
CIE-LCHlch(4.78, 29.90, 320.70°)
OKLaboklab(18.58% 0.0652 -0.0561)
OKLCHoklch(18.58% 0.086 319.3)
XYZxyz(1.0884, 0.5290, 2.2348)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22012A #092A01
analogous
#0D012A #22012A #2A011D
triadic
#22012A #2A2201 #012A22
tetradic
#22012A #2A0D01 #092A01 #011D2A
square
#22012A #2A0D01 #092A01 #011D2A
split-complementary
#22012A #1D2A01 #012A0D
monochromatic
#18011E #18011E #22012A #520266 #8304A2

Accessibility & contrast

On white

18.99
#22012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22012A
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22012A#FFFFFF#000000##FFFFFF
##22012A1.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#031129
Tritanopia (blue-blind)
#220815
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #22012a;
/* rgb */ color: rgb(34, 1, 42);
/* oklch */ color: oklch(18.6% 0.086 319.3);
Tailwind
colors: {
  custom: {
    50: '#5e4664',
    500: '#22012a',
    950: '#000000',
  },
}
SCSS
$custom: #22012a;
$custom-light: #5e4664;
$custom-dark: #000000;
JSON
{
  "hex": "#22012a",
  "rgb": {
    "r": 34,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 288.293,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18584,
    "c": 0.08596,
    "h": 319.3
  },
  "luminance": 0.00529
}

Semantic roles & 50–950 ramp

primary
#22012A
secondary
#287016
accent
#FF2953
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #22012A

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

Preview Lab → · Contrast checker → · Palette generator →

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