#220C40#220C40

#220C40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.093 H 297.7°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#220C40
RGBrgb(34, 12, 64)
HSLhsl(265, 68%, 15%)
HSVhsv(265, 81%, 25%)
CMYKcmyk(46.9%, 81.2%, 0%, 74.9%)
CIE-LABlab(8.77, 24.43, -28.67)
CIE-LCHlch(8.77, 37.66, 310.43°)
OKLaboklab(22.44% 0.0431 -0.0819)
OKLCHoklch(22.44% 0.093 297.7)
XYZxyz(1.7163, 0.9732, 4.9469)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C40 #2A400C
analogous
#0C1040 #220C40 #3C0C40
triadic
#220C40 #40220C #0C4022
tetradic
#220C40 #400C10 #2A400C #0C403C
square
#220C40 #400C10 #2A400C #0C403C
split-complementary
#220C40 #403C0C #10400C
monochromatic
#0E051A #0E051A #220C40 #3D1674 #591FA7

Accessibility & contrast

On white

17.58
#220C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#220C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C40
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C40#FFFFFF#000000##FFFFFF
##220C401.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#1A1925
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #220c40;
/* rgb */ color: rgb(34, 12, 64);
/* oklch */ color: oklch(22.4% 0.093 297.7);
Tailwind
colors: {
  custom: {
    50: '#614d75',
    500: '#220c40',
    950: '#000000',
  },
}
SCSS
$custom: #220c40;
$custom-light: #614d75;
$custom-dark: #000000;
JSON
{
  "hex": "#220c40",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 265.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22437,
    "c": 0.09256,
    "h": 297.7
  },
  "luminance": 0.00973
}

Semantic roles & 50–950 ramp

primary
#220C40
secondary
#5A7C2C
accent
#EB3DA1
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #220C40

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

Preview Lab → · Contrast checker → · Palette generator →

#220C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva