#22188C#22188C

#22188C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.178 H 274.1°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#22188C
RGBrgb(34, 24, 140)
HSLhsl(245, 71%, 32%)
HSVhsv(245, 83%, 55%)
CMYKcmyk(75.7%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.58, 42.55, -61.22)
CIE-LCHlch(19.58, 74.55, 304.80°)
OKLaboklab(32.56% 0.0126 -0.1771)
OKLCHoklch(32.56% 0.178 274.1)
XYZxyz(5.7184, 2.8862, 25.0616)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22188C #828C18
analogous
#18488C #22188C #5C188C
triadic
#22188C #8C2218 #188C22
tetradic
#22188C #8C1848 #828C18 #188C5C
square
#22188C #8C1848 #828C18 #188C5C
split-complementary
#22188C #8C5C18 #488C18
monochromatic
#090624 #150F58 #22188C #2F21C0 #4E40DE

Accessibility & contrast

On white

13.31
#22188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22188C
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22188C#FFFFFF#000000##FFFFFF
##22188C1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22188c;
/* rgb */ color: rgb(34, 24, 140);
/* oklch */ color: oklch(32.6% 0.178 274.1);
Tailwind
colors: {
  custom: {
    50: '#7059af',
    500: '#22188c',
    950: '#000000',
  },
}
SCSS
$custom: #22188c;
$custom-light: #7059af;
$custom-dark: #000000;
JSON
{
  "hex": "#22188c",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 245.172,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32555,
    "c": 0.17751,
    "h": 274.1
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#22188C
secondary
#B4BF41
accent
#ED3ADE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #22188C

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

Preview Lab → · Contrast checker → · Palette generator →

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