#22122C#22122C

#22122C is a very dark, muted violet. Relative luminance 0.010; OKLCH L 21.8% C 0.053 H 311.1°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#22122C
RGBrgb(34, 18, 44)
HSLhsl(277, 42%, 12%)
HSVhsv(277, 59%, 17%)
CMYKcmyk(22.7%, 59.1%, 0%, 82.7%)
CIE-LABlab(8.61, 14.44, -14.39)
CIE-LCHlch(8.61, 20.38, 315.09°)
OKLaboklab(21.81% 0.035 -0.0401)
OKLCHoklch(21.81% 0.053 311.1)
XYZxyz(1.3305, 0.9546, 2.4965)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22122C #1C2C12
analogous
#15122C #22122C #2C1229
triadic
#22122C #2C2212 #122C22
tetradic
#22122C #2C1512 #1C2C12 #12292C
square
#22122C #2C1512 #1C2C12 #12292C
split-complementary
#22122C #292C12 #122C15
monochromatic
#110916 #110916 #22122C #442457 #653683

Accessibility & contrast

On white

17.63
#22122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22122C
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22122C#FFFFFF#000000##FFFFFF
##22122C1.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182D
Deuteranopia (green-blind)
#10192B
Tritanopia (blue-blind)
#21161C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #22122c;
/* rgb */ color: rgb(34, 18, 44);
/* oklch */ color: oklch(21.8% 0.053 311.1);
Tailwind
colors: {
  custom: {
    50: '#5e5065',
    500: '#22122c',
    950: '#000000',
  },
}
SCSS
$custom: #22122c;
$custom-light: #5e5065;
$custom-dark: #000000;
JSON
{
  "hex": "#22122c",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 276.923,
    "s": 41.935,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21809,
    "c": 0.05323,
    "h": 311.1
  },
  "luminance": 0.00955
}

Semantic roles & 50–950 ramp

primary
#22122C
secondary
#486336
accent
#D25686
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040205
muted
#79787A

Preview Lab

Preview with #22122C

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

Preview Lab → · Contrast checker → · Palette generator →

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