#220840#220840

#220840 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.098 H 299.0°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#220840
RGBrgb(34, 8, 64)
HSLhsl(268, 78%, 14%)
HSVhsv(268, 88%, 25%)
CMYKcmyk(46.9%, 87.5%, 0%, 74.9%)
CIE-LABlab(7.98, 26.65, -29.94)
CIE-LCHlch(7.98, 40.08, 311.67°)
OKLaboklab(21.89% 0.0475 -0.0856)
OKLCHoklch(21.89% 0.098 299)
XYZxyz(1.6717, 0.8839, 4.9320)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220840 #264008
analogous
#080A40 #220840 #3E0840
triadic
#220840 #402208 #084022
tetradic
#220840 #40080A #264008 #08403E
square
#220840 #40080A #264008 #08403E
split-complementary
#220840 #403E08 #0A4008
monochromatic
#0E031B #0E031B #220840 #3F0F76 #5C16AD

Accessibility & contrast

On white

17.85
#220840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220840
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220840#FFFFFF#000000##FFFFFF
##2208401.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#1B1724
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #220840;
/* rgb */ color: rgb(34, 8, 64);
/* oklch */ color: oklch(21.9% 0.098 299.0);
Tailwind
colors: {
  custom: {
    50: '#614a75',
    500: '#220840',
    950: '#000000',
  },
}
SCSS
$custom: #220840;
$custom-light: #614a75;
$custom-dark: #000000;
JSON
{
  "hex": "#220840",
  "rgb": {
    "r": 34,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 267.857,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21886,
    "c": 0.09794,
    "h": 299
  },
  "luminance": 0.00884
}

Semantic roles & 50–950 ramp

primary
#220840
secondary
#557E25
accent
#F4349B
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #220840

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

Preview Lab → · Contrast checker → · Palette generator →

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