#222688#222688

#222688 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.159 H 272.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#222688
RGBrgb(34, 38, 136)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 53%)
CMYKcmyk(75%, 72.1%, 0%, 46.7%)
CIE-LABlab(21.96, 33.19, -54.80)
CIE-LCHlch(21.96, 64.06, 301.20°)
OKLaboklab(34.1% 0.0069 -0.1585)
OKLCHoklch(34.1% 0.159 272.5)
XYZxyz(5.7952, 3.5033, 23.6586)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222688 #888422
analogous
#225988 #222688 #512288
triadic
#222688 #882226 #268822
tetradic
#222688 #882259 #888422 #228851
square
#222688 #882259 #888422 #228851
split-complementary
#222688 #885122 #598822
monochromatic
#0A0B26 #161857 #222688 #2E34B9 #5156D3

Accessibility & contrast

On white

12.35
#222688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222688
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222688#FFFFFF#000000##FFFFFF
##2226881.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222688;
/* rgb */ color: rgb(34, 38, 136);
/* oklch */ color: oklch(34.1% 0.159 272.5);
Tailwind
colors: {
  custom: {
    50: '#6e61ac',
    500: '#222688',
    950: '#000000',
  },
}
SCSS
$custom: #222688;
$custom-light: #6e61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222688",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 237.647,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34101,
    "c": 0.15866,
    "h": 272.5
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#222688
secondary
#B7B34F
accent
#DD45E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222688

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

Preview Lab → · Contrast checker → · Palette generator →

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