#22159E#22159E

#22159E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.4% C 0.201 H 272.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#22159E
RGBrgb(34, 21, 158)
HSLhsl(246, 77%, 35%)
HSVhsv(246, 87%, 62%)
CMYKcmyk(78.5%, 86.7%, 0%, 38%)
CIE-LABlab(21.37, 49.46, -69.38)
CIE-LCHlch(21.37, 85.20, 305.48°)
OKLaboklab(34.43% 0.0085 -0.2006)
OKLCHoklch(34.43% 0.201 272.4)
XYZxyz(7.0973, 3.3443, 32.6126)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22159E #919E15
analogous
#154D9E #22159E #66159E
triadic
#22159E #9E2215 #159E22
tetradic
#22159E #9E154D #919E15 #159E66
square
#22159E #9E154D #919E15 #159E66
split-complementary
#22159E #9E6615 #4D9E15
monochromatic
#0B0732 #160E68 #22159E #2E1CD4 #5647E7

Accessibility & contrast

On white

12.58
#22159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#22159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22159E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22159E#FFFFFF#000000##FFFFFF
##22159E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002D9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22159e;
/* rgb */ color: rgb(34, 21, 158);
/* oklch */ color: oklch(34.4% 0.201 272.4);
Tailwind
colors: {
  custom: {
    50: '#7559bc',
    500: '#22159e',
    950: '#000000',
  },
}
SCSS
$custom: #22159e;
$custom-light: #7559bc;
$custom-dark: #000000;
JSON
{
  "hex": "#22159e",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 245.693,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34434,
    "c": 0.20081,
    "h": 272.4
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#22159E
secondary
#BBC747
accent
#F335E1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #22159E

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

Preview Lab → · Contrast checker → · Palette generator →

#22159E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva