#22122E#22122E

#22122E is a very dark, muted violet. Relative luminance 0.010; OKLCH L 21.9% C 0.056 H 308.9°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#22122E
RGBrgb(34, 18, 46)
HSLhsl(274, 44%, 13%)
HSVhsv(274, 61%, 18%)
CMYKcmyk(26.1%, 60.9%, 0%, 82%)
CIE-LABlab(8.74, 15.02, -15.66)
CIE-LCHlch(8.74, 21.70, 313.80°)
OKLaboklab(21.95% 0.0353 -0.0438)
OKLCHoklch(21.95% 0.056 308.9)
XYZxyz(1.3690, 0.9700, 2.6993)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22122E #1E2E12
analogous
#14122E #22122E #2E122C
triadic
#22122E #2E2212 #122E22
tetradic
#22122E #2E1412 #1E2E12 #122C2E
square
#22122E #2E1412 #1E2E12 #122C2E
split-complementary
#22122E #2C2E12 #122E14
monochromatic
#100916 #100916 #22122E #43235A #633486

Accessibility & contrast

On white

17.59
#22122E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#22122E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22122E
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22122E#FFFFFF#000000##FFFFFF
##22122E1.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182F
Deuteranopia (green-blind)
#0F192D
Tritanopia (blue-blind)
#20171D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #22122e;
/* rgb */ color: rgb(34, 18, 46);
/* oklch */ color: oklch(21.9% 0.056 308.9);
Tailwind
colors: {
  custom: {
    50: '#5e5067',
    500: '#22122e',
    950: '#000000',
  },
}
SCSS
$custom: #22122e;
$custom-light: #5e5067;
$custom-dark: #000000;
JSON
{
  "hex": "#22122e",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 46
  },
  "hsl": {
    "h": 274.286,
    "s": 43.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2195,
    "c": 0.05626,
    "h": 308.9
  },
  "luminance": 0.0097
}

Semantic roles & 50–950 ramp

primary
#22122E
secondary
#4A6636
accent
#D3548B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #22122E

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

Preview Lab → · Contrast checker → · Palette generator →

#22122E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva