#222788#222788

#222788 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.158 H 272.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#222788
RGBrgb(34, 39, 136)
HSLhsl(237, 60%, 33%)
HSVhsv(237, 75%, 53%)
CMYKcmyk(75%, 71.3%, 0%, 46.7%)
CIE-LABlab(22.19, 32.55, -54.41)
CIE-LCHlch(22.19, 63.41, 300.89°)
OKLaboklab(34.27% 0.0063 -0.1574)
OKLCHoklch(34.27% 0.158 272.3)
XYZxyz(5.8276, 3.5681, 23.6694)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222788 #888322
analogous
#225A88 #222788 #502288
triadic
#222788 #882227 #278822
tetradic
#222788 #88225A #888322 #228850
square
#222788 #88225A #888322 #228850
split-complementary
#222788 #885022 #5A8822
monochromatic
#0A0B26 #161957 #222788 #2E35B9 #5157D3

Accessibility & contrast

On white

12.25
#222788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222788
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222788#FFFFFF#000000##FFFFFF
##2227881.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222788;
/* rgb */ color: rgb(34, 39, 136);
/* oklch */ color: oklch(34.3% 0.158 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#222788',
    950: '#000000',
  },
}
SCSS
$custom: #222788;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222788",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 237.059,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34269,
    "c": 0.15752,
    "h": 272.3
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#222788
secondary
#B7B24F
accent
#DB45E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222788

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

Preview Lab → · Contrast checker → · Palette generator →

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