#22188B#22188B

#22188B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.176 H 274.2°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#22188B
RGBrgb(34, 24, 139)
HSLhsl(245, 71%, 32%)
HSVhsv(245, 83%, 55%)
CMYKcmyk(75.5%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.46, 42.23, -60.79)
CIE-LCHlch(19.46, 74.02, 304.78°)
OKLaboklab(32.44% 0.0129 -0.1758)
OKLCHoklch(32.44% 0.176 274.2)
XYZxyz(5.6450, 2.8569, 24.6750)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22188B #818B18
analogous
#18488B #22188B #5B188B
triadic
#22188B #8B2218 #188B22
tetradic
#22188B #8B1848 #818B18 #188B5B
square
#22188B #8B1848 #818B18 #188B5B
split-complementary
#22188B #8B5B18 #488B18
monochromatic
#080623 #150F57 #22188B #2F21BF #4D3FDE

Accessibility & contrast

On white

13.36
#22188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#22188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22188B
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22188B#FFFFFF#000000##FFFFFF
##22188B1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22188b;
/* rgb */ color: rgb(34, 24, 139);
/* oklch */ color: oklch(32.4% 0.176 274.2);
Tailwind
colors: {
  custom: {
    50: '#7058ae',
    500: '#22188b',
    950: '#000000',
  },
}
SCSS
$custom: #22188b;
$custom-light: #7058ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22188b",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 245.217,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32436,
    "c": 0.1763,
    "h": 274.2
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#22188B
secondary
#B3BE40
accent
#ED3ADE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #22188B

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

Preview Lab → · Contrast checker → · Palette generator →

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