#22159F#22159F

#22159F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.6% C 0.202 H 272.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#22159F
RGBrgb(34, 21, 159)
HSLhsl(246, 77%, 35%)
HSVhsv(246, 87%, 62%)
CMYKcmyk(78.6%, 86.8%, 0%, 37.6%)
CIE-LABlab(21.50, 49.76, -69.78)
CIE-LCHlch(21.50, 85.70, 305.49°)
OKLaboklab(34.56% 0.0082 -0.2018)
OKLCHoklch(34.56% 0.202 272.3)
XYZxyz(7.1838, 3.3788, 33.0677)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22159F #929F15
analogous
#154D9F #22159F #67159F
triadic
#22159F #9F2215 #159F22
tetradic
#22159F #9F154D #929F15 #159F67
square
#22159F #9F154D #929F15 #159F67
split-complementary
#22159F #9F6715 #4D9F15
monochromatic
#0B0733 #160E69 #22159F #2E1CD5 #5748E7

Accessibility & contrast

On white

12.53
#22159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22159F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22159F#FFFFFF#000000##FFFFFF
##22159F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002D9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22159f;
/* rgb */ color: rgb(34, 21, 159);
/* oklch */ color: oklch(34.6% 0.202 272.3);
Tailwind
colors: {
  custom: {
    50: '#7659bd',
    500: '#22159f',
    950: '#000000',
  },
}
SCSS
$custom: #22159f;
$custom-light: #7659bd;
$custom-dark: #000000;
JSON
{
  "hex": "#22159f",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 245.652,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34558,
    "c": 0.20196,
    "h": 272.3
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22159F

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

Preview Lab → · Contrast checker → · Palette generator →

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