#221156#221156

#221156 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.116 H 286.2°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#221156
RGBrgb(34, 17, 86)
HSLhsl(255, 67%, 20%)
HSVhsv(255, 80%, 34%)
CMYKcmyk(60.5%, 80.2%, 0%, 66.3%)
CIE-LABlab(12.04, 28.60, -38.58)
CIE-LCHlch(12.04, 48.03, 306.55°)
OKLaboklab(25.44% 0.0322 -0.111)
OKLCHoklch(25.44% 0.116 286.2)
XYZxyz(2.5393, 1.4127, 8.9412)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221156 #455611
analogous
#112256 #221156 #451156
triadic
#221156 #562211 #115622
tetradic
#221156 #561122 #455611 #115645
square
#221156 #561122 #455611 #115645
split-complementary
#221156 #564511 #225611
monochromatic
#0A051A #0E0723 #221156 #361B89 #4A25BC

Accessibility & contrast

On white

16.37
#221156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#221156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221156
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221156#FFFFFF#000000##FFFFFF
##2211561.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#0A2432
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221156;
/* rgb */ color: rgb(34, 17, 86);
/* oklch */ color: oklch(25.4% 0.116 286.2);
Tailwind
colors: {
  custom: {
    50: '#645186',
    500: '#221156',
    950: '#000000',
  },
}
SCSS
$custom: #221156;
$custom-light: #645186;
$custom-dark: #000000;
JSON
{
  "hex": "#221156",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 254.783,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25443,
    "c": 0.11562,
    "h": 286.2
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#221156
secondary
#798F34
accent
#EA3EC0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221156

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

Preview Lab → · Contrast checker → · Palette generator →

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