#22178E#22178E

#22178E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.181 H 273.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#22178E
RGBrgb(34, 23, 142)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 84%, 56%)
CMYKcmyk(76.1%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.66, 43.67, -62.34)
CIE-LCHlch(19.66, 76.11, 305.01°)
OKLaboklab(32.68% 0.0124 -0.1803)
OKLCHoklch(32.68% 0.181 273.9)
XYZxyz(5.8469, 2.9053, 25.8386)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22178E #838E17
analogous
#17488E #22178E #5D178E
triadic
#22178E #8E2217 #178E22
tetradic
#22178E #8E1748 #838E17 #178E5D
square
#22178E #8E1748 #838E17 #178E5D
split-complementary
#22178E #8E5D17 #488E17
monochromatic
#090625 #150E59 #22178E #2F20C3 #4E3FE0

Accessibility & contrast

On white

13.28
#22178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22178E
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22178E#FFFFFF#000000##FFFFFF
##22178E1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22178e;
/* rgb */ color: rgb(34, 23, 142);
/* oklch */ color: oklch(32.7% 0.181 273.9);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#22178e',
    950: '#000000',
  },
}
SCSS
$custom: #22178e;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22178e",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 245.546,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.18072,
    "h": 273.9
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#22178E
secondary
#B4C040
accent
#EF39DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22178E

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

Preview Lab → · Contrast checker → · Palette generator →

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