#22188E#22188E

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

Color values

HEX#22188E
RGBrgb(34, 24, 142)
HSLhsl(245, 71%, 33%)
HSVhsv(245, 83%, 56%)
CMYKcmyk(76.1%, 83.1%, 0%, 44.3%)
CIE-LABlab(19.83, 43.19, -62.07)
CIE-LCHlch(19.83, 75.61, 304.83°)
OKLaboklab(32.79% 0.0121 -0.1795)
OKLCHoklch(32.79% 0.18 273.8)
XYZxyz(5.8672, 2.9457, 25.8453)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22188E #848E18
analogous
#18498E #22188E #5D188E
triadic
#22188E #8E2218 #188E22
tetradic
#22188E #8E1849 #848E18 #188E5D
square
#22188E #8E1849 #848E18 #188E5D
split-complementary
#22188E #8E5D18 #498E18
monochromatic
#090625 #150F5A #22188E #2F21C2 #4F41DF

Accessibility & contrast

On white

13.21
#22188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22188E
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22188E#FFFFFF#000000##FFFFFF
##22188E1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22188e;
/* rgb */ color: rgb(34, 24, 142);
/* oklch */ color: oklch(32.8% 0.180 273.8);
Tailwind
colors: {
  custom: {
    50: '#7159b0',
    500: '#22188e',
    950: '#000000',
  },
}
SCSS
$custom: #22188e;
$custom-light: #7159b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22188e",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 245.085,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.17992,
    "h": 273.8
  },
  "luminance": 0.02946
}

Semantic roles & 50–950 ramp

primary
#22188E
secondary
#B5C042
accent
#EE3ADF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #22188E

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

Preview Lab → · Contrast checker → · Palette generator →

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