#222588#222588

#222588 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.160 H 272.7°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#222588
RGBrgb(34, 37, 136)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 53%)
CMYKcmyk(75%, 72.8%, 0%, 46.7%)
CIE-LABlab(21.73, 33.82, -55.17)
CIE-LCHlch(21.73, 64.71, 301.51°)
OKLaboklab(33.94% 0.0075 -0.1596)
OKLCHoklch(33.94% 0.16 272.7)
XYZxyz(5.7637, 3.4402, 23.6480)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222588 #888522
analogous
#225888 #222588 #522288
triadic
#222588 #882225 #258822
tetradic
#222588 #882258 #888522 #228852
square
#222588 #882258 #888522 #228852
split-complementary
#222588 #885222 #588822
monochromatic
#0A0A26 #161857 #222588 #2E32B9 #5155D3

Accessibility & contrast

On white

12.44
#222588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222588
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222588#FFFFFF#000000##FFFFFF
##2225881.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222588;
/* rgb */ color: rgb(34, 37, 136);
/* oklch */ color: oklch(33.9% 0.160 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e60ac',
    500: '#222588',
    950: '#000000',
  },
}
SCSS
$custom: #222588;
$custom-light: #6e60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222588",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 238.235,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33936,
    "c": 0.15978,
    "h": 272.7
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#222588
secondary
#B7B44F
accent
#DE45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222588

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

Preview Lab → · Contrast checker → · Palette generator →

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