#22178D#22178D

#22178D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.180 H 274.1°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#22178D
RGBrgb(34, 23, 141)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(75.9%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.54, 43.35, -61.92)
CIE-LCHlch(19.54, 75.59, 305.00°)
OKLaboklab(32.56% 0.0127 -0.1791)
OKLCHoklch(32.56% 0.18 274.1)
XYZxyz(5.7722, 2.8754, 25.4449)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22178D #828D17
analogous
#17478D #22178D #5D178D
triadic
#22178D #8D2217 #178D22
tetradic
#22178D #8D1747 #828D17 #178D5D
square
#22178D #8D1747 #828D17 #178D5D
split-complementary
#22178D #8D5D17 #478D17
monochromatic
#090624 #150E58 #22178D #2F20C2 #4E3FE0

Accessibility & contrast

On white

13.33
#22178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22178D
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22178D#FFFFFF#000000##FFFFFF
##22178D1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22178d;
/* rgb */ color: rgb(34, 23, 141);
/* oklch */ color: oklch(32.6% 0.180 274.1);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#22178d',
    950: '#000000',
  },
}
SCSS
$custom: #22178d;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22178d",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 245.593,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32559,
    "c": 0.17952,
    "h": 274.1
  },
  "luminance": 0.02876
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22178D

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

Preview Lab → · Contrast checker → · Palette generator →

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