#222988#222988

#222988 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.155 H 271.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#222988
RGBrgb(34, 41, 136)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(75%, 69.9%, 0%, 46.7%)
CIE-LABlab(22.66, 31.26, -53.63)
CIE-LCHlch(22.66, 62.08, 300.24°)
OKLaboklab(34.61% 0.0051 -0.1551)
OKLCHoklch(34.61% 0.155 271.9)
XYZxyz(5.8951, 3.7029, 23.6918)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222988 #888122
analogous
#225C88 #222988 #4E2288
triadic
#222988 #882229 #298822
tetradic
#222988 #88225C #888122 #22884E
square
#222988 #88225C #888122 #22884E
split-complementary
#222988 #884E22 #5C8822
monochromatic
#0A0B26 #161A57 #222988 #2E38B9 #515AD3

Accessibility & contrast

On white

12.06
#222988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222988
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222988#FFFFFF#000000##FFFFFF
##2229881.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222988;
/* rgb */ color: rgb(34, 41, 136);
/* oklch */ color: oklch(34.6% 0.155 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e63ac',
    500: '#222988',
    950: '#000000',
  },
}
SCSS
$custom: #222988;
$custom-light: #6e63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222988",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 235.882,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34612,
    "c": 0.15519,
    "h": 271.9
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#222988
secondary
#B7B04F
accent
#D845E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222988

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

Preview Lab → · Contrast checker → · Palette generator →

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