#221159#221159

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

Color values

HEX#221159
RGBrgb(34, 17, 89)
HSLhsl(254, 68%, 21%)
HSVhsv(254, 81%, 35%)
CMYKcmyk(61.8%, 80.9%, 0%, 65.1%)
CIE-LABlab(12.37, 29.59, -40.08)
CIE-LCHlch(12.37, 49.82, 306.44°)
OKLaboklab(25.77% 0.0313 -0.1154)
OKLCHoklch(25.77% 0.12 285.2)
XYZxyz(2.6628, 1.4621, 9.5912)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221159 #485911
analogous
#112459 #221159 #461159
triadic
#221159 #592211 #115922
tetradic
#221159 #591124 #485911 #115946
square
#221159 #591124 #485911 #115946
split-complementary
#221159 #594611 #245911
monochromatic
#0A051A #0E0726 #221159 #361B8C #4925C0

Accessibility & contrast

On white

16.25
#221159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#221159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221159
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221159#FFFFFF#000000##FFFFFF
##2211591.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225B
Deuteranopia (green-blind)
#001E58
Tritanopia (blue-blind)
#062534
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221159;
/* rgb */ color: rgb(34, 17, 89);
/* oklch */ color: oklch(25.8% 0.120 285.2);
Tailwind
colors: {
  custom: {
    50: '#655189',
    500: '#221159',
    950: '#000000',
  },
}
SCSS
$custom: #221159;
$custom-light: #655189;
$custom-dark: #000000;
JSON
{
  "hex": "#221159",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 254.167,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25769,
    "c": 0.11961,
    "h": 285.2
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#221159
secondary
#7C9234
accent
#EB3DC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221159

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

Preview Lab → · Contrast checker → · Palette generator →

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