#220C4E#220C4E

#220C4E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.111 H 290.6°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#220C4E
RGBrgb(34, 12, 78)
HSLhsl(260, 73%, 18%)
HSVhsv(260, 85%, 31%)
CMYKcmyk(56.4%, 84.6%, 0%, 69.4%)
CIE-LABlab(10.21, 28.80, -36.12)
CIE-LCHlch(10.21, 46.20, 308.56°)
OKLaboklab(23.89% 0.039 -0.1038)
OKLCHoklch(23.89% 0.111 290.6)
XYZxyz(2.1659, 1.1530, 7.3147)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C4E #384E0C
analogous
#0C174E #220C4E #430C4E
triadic
#220C4E #4E220C #0C4E22
tetradic
#220C4E #4E0C17 #384E0C #0C4E43
square
#220C4E #4E0C17 #384E0C #0C4E43
split-complementary
#220C4E #4E430C #174E0C
monochromatic
#0C041B #0C041B #220C4E #391483 #501CB8

Accessibility & contrast

On white

17.06
#220C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#220C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C4E
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C4E#FFFFFF#000000##FFFFFF
##220C4E1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#121F2D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #220c4e;
/* rgb */ color: rgb(34, 12, 78);
/* oklch */ color: oklch(23.9% 0.111 290.6);
Tailwind
colors: {
  custom: {
    50: '#634e80',
    500: '#220c4e',
    950: '#000000',
  },
}
SCSS
$custom: #220c4e;
$custom-light: #634e80;
$custom-dark: #000000;
JSON
{
  "hex": "#220c4e",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 260,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23893,
    "c": 0.11088,
    "h": 290.6
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#220C4E
secondary
#6A8A2C
accent
#F038B3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #220C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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