#220540#220540

#220540 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.102 H 299.9°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#220540
RGBrgb(34, 5, 64)
HSLhsl(269, 86%, 14%)
HSVhsv(269, 92%, 25%)
CMYKcmyk(46.9%, 92.2%, 0%, 74.9%)
CIE-LABlab(7.40, 28.33, -30.90)
CIE-LCHlch(7.40, 41.93, 312.52°)
OKLaboklab(21.47% 0.051 -0.0885)
OKLCHoklch(21.47% 0.102 299.9)
XYZxyz(1.6391, 0.8188, 4.9212)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220540 #234005
analogous
#050540 #220540 #3F0540
triadic
#220540 #402205 #054022
tetradic
#220540 #400505 #234005 #05403F
square
#220540 #400505 #234005 #05403F
split-complementary
#220540 #403F05 #054005
monochromatic
#0F021C #0F021C #220540 #400979 #5E0EB2

Accessibility & contrast

On white

18.04
#220540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#220540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220540
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220540#FFFFFF#000000##FFFFFF
##2205401.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#1B1523
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #220540;
/* rgb */ color: rgb(34, 5, 64);
/* oklch */ color: oklch(21.5% 0.102 299.9);
Tailwind
colors: {
  custom: {
    50: '#614975',
    500: '#220540',
    950: '#000000',
  },
}
SCSS
$custom: #220540;
$custom-light: #614975;
$custom-dark: #000000;
JSON
{
  "hex": "#220540",
  "rgb": {
    "r": 34,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 269.492,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21466,
    "c": 0.10214,
    "h": 299.9
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#220540
secondary
#518120
accent
#FC2C96
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #220540

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

Preview Lab → · Contrast checker → · Palette generator →

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