#222388#222388

#222388 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 273.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#222388
RGBrgb(34, 35, 136)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(75%, 74.3%, 0%, 46.7%)
CIE-LABlab(21.28, 35.06, -55.91)
CIE-LCHlch(21.28, 66.00, 302.09°)
OKLaboklab(33.62% 0.0086 -0.1617)
OKLCHoklch(33.62% 0.162 273)
XYZxyz(5.7032, 3.3191, 23.6279)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222388 #888722
analogous
#225688 #222388 #542288
triadic
#222388 #882223 #238822
tetradic
#222388 #882256 #888722 #228854
square
#222388 #882256 #888722 #228854
split-complementary
#222388 #885422 #568822
monochromatic
#0A0A26 #161657 #222388 #2E30B9 #5152D3

Accessibility & contrast

On white

12.62
#222388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#222388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222388
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222388#FFFFFF#000000##FFFFFF
##2223881.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222388;
/* rgb */ color: rgb(34, 35, 136);
/* oklch */ color: oklch(33.6% 0.162 273.0);
Tailwind
colors: {
  custom: {
    50: '#6e5fac',
    500: '#222388',
    950: '#000000',
  },
}
SCSS
$custom: #222388;
$custom-light: #6e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#222388",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 239.412,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33616,
    "c": 0.16198,
    "h": 273
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#222388
secondary
#B7B64F
accent
#E245E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222388

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

Preview Lab → · Contrast checker → · Palette generator →

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