#22178B#22178B

#22178B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.177 H 274.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#22178B
RGBrgb(34, 23, 139)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 83%, 55%)
CMYKcmyk(75.5%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.29, 42.72, -61.07)
CIE-LCHlch(19.29, 74.53, 304.97°)
OKLaboklab(32.32% 0.0133 -0.1766)
OKLCHoklch(32.32% 0.177 274.3)
XYZxyz(5.6247, 2.8164, 24.6683)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22178B #808B17
analogous
#17468B #22178B #5C178B
triadic
#22178B #8B2217 #178B22
tetradic
#22178B #8B1746 #808B17 #178B5C
square
#22178B #8B1746 #808B17 #178B5C
split-complementary
#22178B #8B5C17 #468B17
monochromatic
#080622 #150E56 #22178B #2F20C0 #4D3DDF

Accessibility & contrast

On white

13.43
#22178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#22178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22178B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22178B#FFFFFF#000000##FFFFFF
##22178B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22178b;
/* rgb */ color: rgb(34, 23, 139);
/* oklch */ color: oklch(32.3% 0.177 274.3);
Tailwind
colors: {
  custom: {
    50: '#7058ae',
    500: '#22178b',
    950: '#000000',
  },
}
SCSS
$custom: #22178b;
$custom-light: #7058ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22178b",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 245.69,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32319,
    "c": 0.17712,
    "h": 274.3
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#22178B
secondary
#B2BF3F
accent
#EE39DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #22178B

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

Preview Lab → · Contrast checker → · Palette generator →

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