#221562#221562

#221562 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.3% C 0.127 H 281.7°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#221562
RGBrgb(34, 21, 98)
HSLhsl(250, 65%, 23%)
HSVhsv(250, 79%, 38%)
CMYKcmyk(65.3%, 78.6%, 0%, 61.6%)
CIE-LABlab(14.16, 30.29, -43.15)
CIE-LCHlch(14.16, 52.72, 305.06°)
OKLaboklab(27.33% 0.0257 -0.1244)
OKLCHoklch(27.33% 0.127 281.7)
XYZxyz(3.1318, 1.7580, 11.7272)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221562 #556215
analogous
#152E62 #221562 #481562
triadic
#221562 #622215 #156222
tetradic
#221562 #62152E #556215 #156248
square
#221562 #62152E #556215 #156248
split-complementary
#221562 #624815 #2E6215
monochromatic
#090519 #110A30 #221562 #332094 #452BC7

Accessibility & contrast

On white

15.54
#221562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#221562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221562
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221562#FFFFFF#000000##FFFFFF
##2215621.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002161
Tritanopia (blue-blind)
#002B3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #221562;
/* rgb */ color: rgb(34, 21, 98);
/* oklch */ color: oklch(27.3% 0.127 281.7);
Tailwind
colors: {
  custom: {
    50: '#675490',
    500: '#221562',
    950: '#000000',
  },
}
SCSS
$custom: #221562;
$custom-light: #675490;
$custom-dark: #000000;
JSON
{
  "hex": "#221562",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 250.13,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27331,
    "c": 0.12706,
    "h": 281.7
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#221562
secondary
#89993A
accent
#E840CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #221562

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

Preview Lab → · Contrast checker → · Palette generator →

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