#220C4C#220C4C

#220C4C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.108 H 291.5°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#220C4C
RGBrgb(34, 12, 76)
HSLhsl(261, 73%, 17%)
HSVhsv(261, 84%, 30%)
CMYKcmyk(55.3%, 84.2%, 0%, 70.2%)
CIE-LABlab(9.99, 28.17, -35.09)
CIE-LCHlch(9.99, 45.00, 308.76°)
OKLaboklab(23.68% 0.0397 -0.1008)
OKLCHoklch(23.68% 0.108 291.5)
XYZxyz(2.0953, 1.1247, 6.9428)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C4C #364C0C
analogous
#0C164C #220C4C #420C4C
triadic
#220C4C #4C220C #0C4C22
tetradic
#220C4C #4C0C16 #364C0C #0C4C42
square
#220C4C #4C0C16 #364C0C #0C4C42
split-complementary
#220C4C #4C420C #164C0C
monochromatic
#0C041A #0C041A #220C4C #3A1481 #511DB6

Accessibility & contrast

On white

17.14
#220C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#220C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C4C
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C4C#FFFFFF#000000##FFFFFF
##220C4C1.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#141E2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #220c4c;
/* rgb */ color: rgb(34, 12, 76);
/* oklch */ color: oklch(23.7% 0.108 291.5);
Tailwind
colors: {
  custom: {
    50: '#634d7f',
    500: '#220c4c',
    950: '#000000',
  },
}
SCSS
$custom: #220c4c;
$custom-light: #634d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#220c4c",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 260.625,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23676,
    "c": 0.1083,
    "h": 291.5
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#220C4C
secondary
#68882C
accent
#EF38B1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #220C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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