#222888#222888

#222888 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.156 H 272.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#222888
RGBrgb(34, 40, 136)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(75%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.42, 31.91, -54.03)
CIE-LCHlch(22.42, 62.75, 300.57°)
OKLaboklab(34.44% 0.0057 -0.1563)
OKLCHoklch(34.44% 0.156 272.1)
XYZxyz(5.8609, 3.6346, 23.6805)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222888 #888222
analogous
#225B88 #222888 #4F2288
triadic
#222888 #882228 #288822
tetradic
#222888 #88225B #888222 #22884F
square
#222888 #88225B #888222 #22884F
split-complementary
#222888 #884F22 #5B8822
monochromatic
#0A0B26 #161A57 #222888 #2E36B9 #5159D3

Accessibility & contrast

On white

12.16
#222888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#222888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222888
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222888#FFFFFF#000000##FFFFFF
##2228881.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222888;
/* rgb */ color: rgb(34, 40, 136);
/* oklch */ color: oklch(34.4% 0.156 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#222888',
    950: '#000000',
  },
}
SCSS
$custom: #222888;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222888",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 236.471,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34439,
    "c": 0.15636,
    "h": 272.1
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#222888
secondary
#B7B14F
accent
#DA45E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222888

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

Preview Lab → · Contrast checker → · Palette generator →

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