#220C42#220C42

#220C42 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.095 H 296.6°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#220C42
RGBrgb(34, 12, 66)
HSLhsl(264, 69%, 15%)
HSVhsv(264, 82%, 26%)
CMYKcmyk(48.5%, 81.8%, 0%, 74.1%)
CIE-LABlab(8.96, 25.05, -29.77)
CIE-LCHlch(8.96, 38.90, 310.08°)
OKLaboklab(22.64% 0.0426 -0.0852)
OKLCHoklch(22.64% 0.095 296.6)
XYZxyz(1.7743, 0.9963, 5.2520)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C42 #2C420C
analogous
#0C1142 #220C42 #3D0C42
triadic
#220C42 #42220C #0C4222
tetradic
#220C42 #420C11 #2C420C #0C423D
square
#220C42 #420C11 #2C420C #0C423D
split-complementary
#220C42 #423D0C #11420C
monochromatic
#0D051A #0D051A #220C42 #3D1576 #571FAA

Accessibility & contrast

On white

17.51
#220C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#220C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C42
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C42#FFFFFF#000000##FFFFFF
##220C421.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#1A1A26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #220c42;
/* rgb */ color: rgb(34, 12, 66);
/* oklch */ color: oklch(22.6% 0.095 296.6);
Tailwind
colors: {
  custom: {
    50: '#614d77',
    500: '#220c42',
    950: '#000000',
  },
}
SCSS
$custom: #220c42;
$custom-light: #614d77;
$custom-dark: #000000;
JSON
{
  "hex": "#220c42",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 264.444,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22636,
    "c": 0.09521,
    "h": 296.6
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#220C42
secondary
#5D7E2C
accent
#EC3CA4
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #220C42

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

Preview Lab → · Contrast checker → · Palette generator →

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