#22012C#22012C

#22012C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.8% C 0.088 H 317.3°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#22012C
RGBrgb(34, 1, 44)
HSLhsl(286, 96%, 9%)
HSVhsv(286, 98%, 17%)
CMYKcmyk(22.7%, 97.7%, 0%, 82.7%)
CIE-LABlab(4.91, 23.82, -20.24)
CIE-LCHlch(4.91, 31.26, 319.64°)
OKLaboklab(18.77% 0.0646 -0.0596)
OKLCHoklch(18.77% 0.088 317.3)
XYZxyz(1.1251, 0.5437, 2.4281)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22012C #0B2C01
analogous
#0D012C #22012C #2C0121
triadic
#22012C #2C2201 #012C22
tetradic
#22012C #2C0D01 #0B2C01 #01212C
square
#22012C #2C0D01 #0B2C01 #01212C
split-complementary
#22012C #212C01 #012C0D
monochromatic
#17011E #17011E #22012C #500268 #7E04A4

Accessibility & contrast

On white

18.94
#22012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22012C
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22012C#FFFFFF#000000##FFFFFF
##22012C1.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#01122B
Tritanopia (blue-blind)
#210916
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #22012c;
/* rgb */ color: rgb(34, 1, 44);
/* oklch */ color: oklch(18.8% 0.088 317.3);
Tailwind
colors: {
  custom: {
    50: '#5f4665',
    500: '#22012c',
    950: '#000000',
  },
}
SCSS
$custom: #22012c;
$custom-light: #5f4665;
$custom-dark: #000000;
JSON
{
  "hex": "#22012c",
  "rgb": {
    "r": 34,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 286.047,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18771,
    "c": 0.08791,
    "h": 317.3
  },
  "luminance": 0.00544
}

Semantic roles & 50–950 ramp

primary
#22012C
secondary
#2C7217
accent
#FF295B
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#050005
muted
#79767A

Preview Lab

Preview with #22012C

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

Preview Lab → · Contrast checker → · Palette generator →

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