#22188F#22188F

#22188F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.181 H 273.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#22188F
RGBrgb(34, 24, 143)
HSLhsl(245, 71%, 33%)
HSVhsv(245, 83%, 56%)
CMYKcmyk(76.2%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.95, 43.50, -62.49)
CIE-LCHlch(19.95, 76.14, 304.85°)
OKLaboklab(32.91% 0.0118 -0.1807)
OKLCHoklch(32.91% 0.181 273.7)
XYZxyz(5.9426, 2.9759, 26.2425)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22188F #858F18
analogous
#18498F #22188F #5D188F
triadic
#22188F #8F2218 #188F22
tetradic
#22188F #8F1849 #858F18 #188F5D
square
#22188F #8F1849 #858F18 #188F5D
split-complementary
#22188F #8F5D18 #498F18
monochromatic
#090626 #160F5B #22188F #2E21C3 #4F42DF

Accessibility & contrast

On white

13.16
#22188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#22188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22188F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22188F#FFFFFF#000000##FFFFFF
##22188F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22188f;
/* rgb */ color: rgb(34, 24, 143);
/* oklch */ color: oklch(32.9% 0.181 273.7);
Tailwind
colors: {
  custom: {
    50: '#7159b1',
    500: '#22188f',
    950: '#000000',
  },
}
SCSS
$custom: #22188f;
$custom-light: #7159b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22188f",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 245.042,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32914,
    "c": 0.18112,
    "h": 273.7
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22188F

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

Preview Lab → · Contrast checker → · Palette generator →

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