#22179F#22179F

#22179F is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 34.8% C 0.201 H 272.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#22179F
RGBrgb(34, 23, 159)
HSLhsl(245, 75%, 36%)
HSVhsv(245, 86%, 62%)
CMYKcmyk(78.6%, 85.5%, 0%, 37.6%)
CIE-LABlab(21.78, 48.92, -69.31)
CIE-LCHlch(21.78, 84.84, 305.22°)
OKLaboklab(34.75% 0.0078 -0.2005)
OKLCHoklch(34.75% 0.201 272.2)
XYZxyz(7.2220, 3.4553, 33.0805)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22179F #949F17
analogous
#17509F #22179F #66179F
triadic
#22179F #9F2217 #179F22
tetradic
#22179F #9F1750 #949F17 #179F66
square
#22179F #9F1750 #949F17 #179F66
split-complementary
#22179F #9F6617 #509F17
monochromatic
#0B0834 #170F6A #22179F #2D1FD4 #584BE5

Accessibility & contrast

On white

12.42
#22179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#22179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22179F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22179F#FFFFFF#000000##FFFFFF
##22179F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22179f;
/* rgb */ color: rgb(34, 23, 159);
/* oklch */ color: oklch(34.8% 0.201 272.2);
Tailwind
colors: {
  custom: {
    50: '#755abd',
    500: '#22179f',
    950: '#000000',
  },
}
SCSS
$custom: #22179f;
$custom-light: #755abd;
$custom-dark: #000000;
JSON
{
  "hex": "#22179f",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 244.853,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34751,
    "c": 0.20063,
    "h": 272.2
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#22179F
secondary
#BDC74B
accent
#F136E2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #22179F

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

Preview Lab → · Contrast checker → · Palette generator →

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