#22179E#22179E

#22179E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.199 H 272.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#22179E
RGBrgb(34, 23, 158)
HSLhsl(245, 75%, 35%)
HSVhsv(245, 85%, 62%)
CMYKcmyk(78.5%, 85.4%, 0%, 38%)
CIE-LABlab(21.66, 48.62, -68.91)
CIE-LCHlch(21.66, 84.33, 305.21°)
OKLaboklab(34.63% 0.008 -0.1993)
OKLCHoklch(34.63% 0.199 272.3)
XYZxyz(7.1356, 3.4207, 32.6253)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22179E #939E17
analogous
#174F9E #22179E #65179E
triadic
#22179E #9E2217 #179E22
tetradic
#22179E #9E174F #939E17 #179E65
square
#22179E #9E174F #939E17 #179E65
split-complementary
#22179E #9E6517 #4F9E17
monochromatic
#0B0733 #170F69 #22179E #2D1FD3 #574BE5

Accessibility & contrast

On white

12.47
#22179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22179E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22179E#FFFFFF#000000##FFFFFF
##22179E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22179e;
/* rgb */ color: rgb(34, 23, 158);
/* oklch */ color: oklch(34.6% 0.199 272.3);
Tailwind
colors: {
  custom: {
    50: '#755abc',
    500: '#22179e',
    950: '#000000',
  },
}
SCSS
$custom: #22179e;
$custom-light: #755abc;
$custom-dark: #000000;
JSON
{
  "hex": "#22179e",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 244.889,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.19948,
    "h": 272.3
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#22179E
secondary
#BCC64A
accent
#F137E2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #22179E

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

Preview Lab → · Contrast checker → · Palette generator →

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