#220942#220942

#220942 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.099 H 297.5°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#220942
RGBrgb(34, 9, 66)
HSLhsl(266, 76%, 15%)
HSVhsv(266, 86%, 26%)
CMYKcmyk(48.5%, 86.4%, 0%, 74.1%)
CIE-LABlab(8.38, 26.69, -30.71)
CIE-LCHlch(8.38, 40.69, 310.99°)
OKLaboklab(22.23% 0.0458 -0.0879)
OKLCHoklch(22.23% 0.099 297.5)
XYZxyz(1.7405, 0.9288, 5.2408)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220942 #294209
analogous
#090C42 #220942 #3F0942
triadic
#220942 #422209 #094222
tetradic
#220942 #42090C #294209 #09423F
square
#220942 #42090C #294209 #09423F
split-complementary
#220942 #423F09 #0C4209
monochromatic
#0E041B #0E041B #220942 #3E1078 #5918AE

Accessibility & contrast

On white

17.71
#220942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#220942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220942
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220942#FFFFFF#000000##FFFFFF
##2209421.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001841
Tritanopia (blue-blind)
#1A1825
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #220942;
/* rgb */ color: rgb(34, 9, 66);
/* oklch */ color: oklch(22.2% 0.099 297.5);
Tailwind
colors: {
  custom: {
    50: '#614b77',
    500: '#220942',
    950: '#000000',
  },
}
SCSS
$custom: #220942;
$custom-light: #614b77;
$custom-dark: #000000;
JSON
{
  "hex": "#220942",
  "rgb": {
    "r": 34,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 266.316,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22229,
    "c": 0.09912,
    "h": 297.5
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#220942
secondary
#598027
accent
#F335A0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #220942

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

Preview Lab → · Contrast checker → · Palette generator →

#220942 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva