#22178C#22178C

#22178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.178 H 274.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#22178C
RGBrgb(34, 23, 140)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(75.7%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.41, 43.04, -61.50)
CIE-LCHlch(19.41, 75.06, 304.99°)
OKLaboklab(32.44% 0.013 -0.1778)
OKLCHoklch(32.44% 0.178 274.2)
XYZxyz(5.6981, 2.8457, 25.0548)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22178C #818C17
analogous
#17478C #22178C #5D178C
triadic
#22178C #8C2217 #178C22
tetradic
#22178C #8C1747 #818C17 #178C5D
square
#22178C #8C1747 #818C17 #178C5D
split-complementary
#22178C #8C5D17 #478C17
monochromatic
#080623 #150E57 #22178C #2F20C1 #4D3EDF

Accessibility & contrast

On white

13.38
#22178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#22178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22178C
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22178C#FFFFFF#000000##FFFFFF
##22178C1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22178c;
/* rgb */ color: rgb(34, 23, 140);
/* oklch */ color: oklch(32.4% 0.178 274.2);
Tailwind
colors: {
  custom: {
    50: '#7158af',
    500: '#22178c',
    950: '#000000',
  },
}
SCSS
$custom: #22178c;
$custom-light: #7158af;
$custom-dark: #000000;
JSON
{
  "hex": "#22178c",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 245.641,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32439,
    "c": 0.17832,
    "h": 274.2
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#22178C
secondary
#B3BF3F
accent
#EF39DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #22178C

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

Preview Lab → · Contrast checker → · Palette generator →

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