#220F5F#220F5F

#220F5F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.130 H 283.8°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#220F5F
RGBrgb(34, 15, 95)
HSLhsl(254, 73%, 22%)
HSVhsv(254, 84%, 37%)
CMYKcmyk(64.2%, 84.2%, 0%, 62.7%)
CIE-LABlab(12.66, 32.63, -43.63)
CIE-LCHlch(12.66, 54.49, 306.79°)
OKLaboklab(26.17% 0.0309 -0.1258)
OKLCHoklch(26.17% 0.13 283.8)
XYZxyz(2.8954, 1.5078, 10.9627)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220F5F #4C5F0F
analogous
#0F245F #220F5F #4A0F5F
triadic
#220F5F #5F220F #0F5F22
tetradic
#220F5F #5F0F24 #4C5F0F #0F5F4A
square
#220F5F #5F0F24 #4C5F0F #0F5F4A
split-complementary
#220F5F #5F4A0F #245F0F
monochromatic
#09041A #0F072A #220F5F #351794 #4820C9

Accessibility & contrast

On white

16.13
#220F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#220F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220F5F
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220F5F#FFFFFF#000000##FFFFFF
##220F5F1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #220f5f;
/* rgb */ color: rgb(34, 15, 95);
/* oklch */ color: oklch(26.2% 0.130 283.8);
Tailwind
colors: {
  custom: {
    50: '#66508d',
    500: '#220f5f',
    950: '#000000',
  },
}
SCSS
$custom: #220f5f;
$custom-light: #66508d;
$custom-dark: #000000;
JSON
{
  "hex": "#220f5f",
  "rgb": {
    "r": 34,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 254.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26175,
    "c": 0.12953,
    "h": 283.8
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#220F5F
secondary
#809832
accent
#EF38C4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #220F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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