#222188#222188

#222188 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.164 H 273.4°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#222188
RGBrgb(34, 33, 136)
HSLhsl(241, 61%, 33%)
HSVhsv(241, 76%, 53%)
CMYKcmyk(75%, 75.7%, 0%, 46.7%)
CIE-LABlab(20.85, 36.27, -56.63)
CIE-LCHlch(20.85, 67.25, 302.64°)
OKLaboklab(33.31% 0.0096 -0.1638)
OKLCHoklch(33.31% 0.164 273.4)
XYZxyz(5.6460, 3.2048, 23.6088)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222188 #878821
analogous
#215388 #222188 #562188
triadic
#222188 #882221 #218822
tetradic
#222188 #882153 #878821 #218856
square
#222188 #882153 #878821 #218856
split-complementary
#222188 #885621 #538821
monochromatic
#090925 #161557 #222188 #2E2DB9 #504FD4

Accessibility & contrast

On white

12.80
#222188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#222188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222188
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222188#FFFFFF#000000##FFFFFF
##2221881.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222188;
/* rgb */ color: rgb(34, 33, 136);
/* oklch */ color: oklch(33.3% 0.164 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f5eac',
    500: '#222188',
    950: '#000000',
  },
}
SCSS
$custom: #222188;
$custom-light: #6f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#222188",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 240.583,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33307,
    "c": 0.1641,
    "h": 273.4
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#222188
secondary
#B7B84D
accent
#E444E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222188

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

Preview Lab → · Contrast checker → · Palette generator →

#222188 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva