#220F5B#220F5B

#220F5B is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.7% C 0.124 H 285.0°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#220F5B
RGBrgb(34, 15, 91)
HSLhsl(255, 72%, 21%)
HSVhsv(255, 84%, 36%)
CMYKcmyk(62.6%, 83.5%, 0%, 64.3%)
CIE-LABlab(12.20, 31.35, -41.70)
CIE-LCHlch(12.20, 52.17, 306.93°)
OKLaboklab(25.72% 0.0323 -0.1201)
OKLCHoklch(25.72% 0.124 285)
XYZxyz(2.7183, 1.4369, 10.0296)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220F5B #485B0F
analogous
#0F225B #220F5B #480F5B
triadic
#220F5B #5B220F #0F5B22
tetradic
#220F5B #5B0F22 #485B0F #0F5B48
square
#220F5B #5B0F22 #485B0F #0F5B48
split-complementary
#220F5B #5B480F #225B0F
monochromatic
#0A041A #0E0626 #220F5B #361890 #4920C4

Accessibility & contrast

On white

16.31
#220F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220F5B
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220F5B#FFFFFF#000000##FFFFFF
##220F5B1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#032535
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #220f5b;
/* rgb */ color: rgb(34, 15, 91);
/* oklch */ color: oklch(25.7% 0.124 285.0);
Tailwind
colors: {
  custom: {
    50: '#66508a',
    500: '#220f5b',
    950: '#000000',
  },
}
SCSS
$custom: #220f5b;
$custom-light: #66508a;
$custom-dark: #000000;
JSON
{
  "hex": "#220f5b",
  "rgb": {
    "r": 34,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 255,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25721,
    "c": 0.12441,
    "h": 285
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#220F5B
secondary
#7C9531
accent
#EE39C1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #220F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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