#22178F#22178F

#22178F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.182 H 273.8°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#22178F
RGBrgb(34, 23, 143)
HSLhsl(246, 72%, 33%)
HSVhsv(246, 84%, 56%)
CMYKcmyk(76.2%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.78, 43.99, -62.76)
CIE-LCHlch(19.78, 76.64, 305.03°)
OKLaboklab(32.8% 0.0121 -0.1815)
OKLCHoklch(32.8% 0.182 273.8)
XYZxyz(5.9224, 2.9354, 26.2357)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22178F #848F17
analogous
#17488F #22178F #5E178F
triadic
#22178F #8F2217 #178F22
tetradic
#22178F #8F1748 #848F17 #178F5E
square
#22178F #8F1748 #848F17 #178F5E
split-complementary
#22178F #8F5E17 #488F17
monochromatic
#090626 #150F5A #22178F #2F1FC4 #4F40E0

Accessibility & contrast

On white

13.23
#22178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22178F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22178F#FFFFFF#000000##FFFFFF
##22178F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22178f;
/* rgb */ color: rgb(34, 23, 143);
/* oklch */ color: oklch(32.8% 0.182 273.8);
Tailwind
colors: {
  custom: {
    50: '#7158b1',
    500: '#22178f',
    950: '#000000',
  },
}
SCSS
$custom: #22178f;
$custom-light: #7158b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22178f",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 245.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.328,
    "c": 0.18191,
    "h": 273.8
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#22178F
secondary
#B5C141
accent
#EF39DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #22178F

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

Preview Lab → · Contrast checker → · Palette generator →

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