#220C5F#220C5F

#220C5F is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.8% C 0.132 H 284.4°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#220C5F
RGBrgb(34, 12, 95)
HSLhsl(256, 78%, 21%)
HSVhsv(256, 87%, 37%)
CMYKcmyk(64.2%, 87.4%, 0%, 62.7%)
CIE-LABlab(12.15, 34.11, -44.47)
CIE-LCHlch(12.15, 56.05, 307.49°)
OKLaboklab(25.82% 0.0328 -0.1282)
OKLCHoklch(25.82% 0.132 284.4)
XYZxyz(2.8561, 1.4291, 10.9496)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C5F #495F0C
analogous
#0C1F5F #220C5F #4B0C5F
triadic
#220C5F #5F220C #0C5F22
tetradic
#220C5F #5F0C1F #495F0C #0C5F4B
square
#220C5F #5F0C1F #495F0C #0C5F4B
split-complementary
#220C5F #5F4B0C #1F5F0C
monochromatic
#0A031B #0F0529 #220C5F #351395 #491ACC

Accessibility & contrast

On white

16.33
#220C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#220C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C5F
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C5F#FFFFFF#000000##FFFFFF
##220C5F1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #220c5f;
/* rgb */ color: rgb(34, 12, 95);
/* oklch */ color: oklch(25.8% 0.132 284.4);
Tailwind
colors: {
  custom: {
    50: '#674f8d',
    500: '#220c5f',
    950: '#000000',
  },
}
SCSS
$custom: #220c5f;
$custom-light: #674f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#220c5f",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 95
  },
  "hsl": {
    "h": 255.904,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25824,
    "c": 0.13233,
    "h": 284.4
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#220C5F
secondary
#7D992D
accent
#F434C1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #220C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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