#220842#220842

#220842 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.100 H 297.8°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#220842
RGBrgb(34, 8, 66)
HSLhsl(267, 78%, 15%)
HSVhsv(267, 88%, 26%)
CMYKcmyk(48.5%, 87.9%, 0%, 74.1%)
CIE-LABlab(8.19, 27.24, -31.02)
CIE-LCHlch(8.19, 41.28, 311.28°)
OKLaboklab(22.1% 0.0469 -0.0888)
OKLCHoklch(22.1% 0.1 297.8)
XYZxyz(1.7296, 0.9071, 5.2372)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220842 #284208
analogous
#080B42 #220842 #3F0842
triadic
#220842 #422208 #084222
tetradic
#220842 #42080B #284208 #08423F
square
#220842 #42080B #284208 #08423F
split-complementary
#220842 #423F08 #0B4208
monochromatic
#0E031B #0E031B #220842 #3E0F79 #5A15AF

Accessibility & contrast

On white

17.78
#220842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#220842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220842
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220842#FFFFFF#000000##FFFFFF
##2208421.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #220842;
/* rgb */ color: rgb(34, 8, 66);
/* oklch */ color: oklch(22.1% 0.100 297.8);
Tailwind
colors: {
  custom: {
    50: '#614b77',
    500: '#220842',
    950: '#000000',
  },
}
SCSS
$custom: #220842;
$custom-light: #614b77;
$custom-dark: #000000;
JSON
{
  "hex": "#220842",
  "rgb": {
    "r": 34,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 266.897,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22095,
    "c": 0.10042,
    "h": 297.8
  },
  "luminance": 0.00907
}

Semantic roles & 50–950 ramp

primary
#220842
secondary
#588025
accent
#F5339E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #220842

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

Preview Lab → · Contrast checker → · Palette generator →

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