#220642#220642

#220642 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.103 H 298.4°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#220642
RGBrgb(34, 6, 66)
HSLhsl(268, 83%, 14%)
HSVhsv(268, 91%, 26%)
CMYKcmyk(48.5%, 90.9%, 0%, 74.1%)
CIE-LABlab(7.80, 28.37, -31.67)
CIE-LCHlch(7.80, 42.52, 311.86°)
OKLaboklab(21.82% 0.049 -0.0907)
OKLCHoklch(21.82% 0.103 298.4)
XYZxyz(1.7079, 0.8636, 5.2299)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220642 #264206
analogous
#060842 #220642 #400642
triadic
#220642 #422206 #064222
tetradic
#220642 #420608 #264206 #064240
square
#220642 #420608 #264206 #064240
split-complementary
#220642 #424006 #084206
monochromatic
#0E031C #0E031C #220642 #3F0B7A #5C10B2

Accessibility & contrast

On white

17.91
#220642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#220642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220642
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220642#FFFFFF#000000##FFFFFF
##2206421.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#1A1724
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #220642;
/* rgb */ color: rgb(34, 6, 66);
/* oklch */ color: oklch(21.8% 0.103 298.4);
Tailwind
colors: {
  custom: {
    50: '#624977',
    500: '#220642',
    950: '#000000',
  },
}
SCSS
$custom: #220642;
$custom-light: #624977;
$custom-dark: #000000;
JSON
{
  "hex": "#220642",
  "rgb": {
    "r": 34,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 268,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21823,
    "c": 0.10309,
    "h": 298.4
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#220642
secondary
#558222
accent
#FA2E9B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #220642

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

Preview Lab → · Contrast checker → · Palette generator →

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