#222887#222887

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

Color values

HEX#222887
RGBrgb(34, 40, 135)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(74.8%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.32, 31.55, -53.56)
CIE-LCHlch(22.32, 62.16, 300.50°)
OKLaboklab(34.34% 0.0058 -0.1549)
OKLCHoklch(34.34% 0.155 272.1)
XYZxyz(5.7902, 3.6063, 23.3079)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222887 #878122
analogous
#225A87 #222887 #4F2287
triadic
#222887 #872228 #288722
tetradic
#222887 #87225A #878122 #22874F
square
#222887 #87225A #878122 #22874F
split-complementary
#222887 #874F22 #5A8722
monochromatic
#090B25 #161A56 #222887 #2E36B8 #5058D3

Accessibility & contrast

On white

12.20
#222887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#222887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222887
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222887#FFFFFF#000000##FFFFFF
##2228871.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222887;
/* rgb */ color: rgb(34, 40, 135);
/* oklch */ color: oklch(34.3% 0.155 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e62ab',
    500: '#222887',
    950: '#000000',
  },
}
SCSS
$custom: #222887;
$custom-light: #6e62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#222887",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 236.436,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34336,
    "c": 0.15502,
    "h": 272.1
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222887

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

Preview Lab → · Contrast checker → · Palette generator →

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