#220340#220340

#220340 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.105 H 300.6°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#220340
RGBrgb(34, 3, 64)
HSLhsl(270, 91%, 13%)
HSVhsv(270, 95%, 25%)
CMYKcmyk(46.9%, 95.3%, 0%, 74.9%)
CIE-LABlab(7.00, 29.45, -31.54)
CIE-LCHlch(7.00, 43.16, 313.03°)
OKLaboklab(21.18% 0.0534 -0.0905)
OKLCHoklch(21.18% 0.105 300.6)
XYZxyz(1.6174, 0.7754, 4.9139)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220340 #214003
analogous
#040340 #220340 #40033F
triadic
#220340 #402203 #034022
tetradic
#220340 #400403 #214003 #033F40
square
#220340 #400403 #214003 #033F40
split-complementary
#220340 #3F4003 #034004
monochromatic
#10011D #10011D #220340 #41067A #6008B5

Accessibility & contrast

On white

18.18
#220340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220340
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220340#FFFFFF#000000##FFFFFF
##2203401.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#1B1422
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #220340;
/* rgb */ color: rgb(34, 3, 64);
/* oklch */ color: oklch(21.2% 0.105 300.6);
Tailwind
colors: {
  custom: {
    50: '#624875',
    500: '#220340',
    950: '#000000',
  },
}
SCSS
$custom: #220340;
$custom-light: #624875;
$custom-dark: #000000;
JSON
{
  "hex": "#220340",
  "rgb": {
    "r": 34,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 270.492,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21177,
    "c": 0.10508,
    "h": 300.6
  },
  "luminance": 0.00775
}

Semantic roles & 50–950 ramp

primary
#220340
secondary
#4F821D
accent
#FF2992
background
#F6F4F7
surface
#EBE6ED
border
#C6C2C8
text
#050008
muted
#7A777B

Preview Lab

Preview with #220340

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

Preview Lab → · Contrast checker → · Palette generator →

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