#221555#221555

#221555 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 285.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#221555
RGBrgb(34, 21, 85)
HSLhsl(252, 60%, 21%)
HSVhsv(252, 75%, 33%)
CMYKcmyk(60%, 75.3%, 0%, 66.7%)
CIE-LABlab(12.81, 25.83, -36.64)
CIE-LCHlch(12.81, 44.83, 305.18°)
OKLaboklab(25.96% 0.0287 -0.1054)
OKLCHoklch(25.96% 0.109 285.2)
XYZxyz(2.5670, 1.5321, 8.7530)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221555 #485515
analogous
#152855 #221555 #421555
triadic
#221555 #552215 #155522
tetradic
#221555 #551528 #485515 #155542
square
#221555 #551528 #485515 #155542
split-complementary
#221555 #554215 #285515
monochromatic
#0A0619 #0E0924 #221555 #362186 #492DB7

Accessibility & contrast

On white

16.07
#221555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#221555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221555
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221555#FFFFFF#000000##FFFFFF
##2215551.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#001F54
Tritanopia (blue-blind)
#0B2633
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #221555;
/* rgb */ color: rgb(34, 21, 85);
/* oklch */ color: oklch(26.0% 0.109 285.2);
Tailwind
colors: {
  custom: {
    50: '#645386',
    500: '#221555',
    950: '#000000',
  },
}
SCSS
$custom: #221555;
$custom-light: #645386;
$custom-dark: #000000;
JSON
{
  "hex": "#221555",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 252.188,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25958,
    "c": 0.10922,
    "h": 285.2
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#221555
secondary
#7C8D39
accent
#E444C3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221555

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

Preview Lab → · Contrast checker → · Palette generator →

#221555 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva