#222987#222987

#222987 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.154 H 271.9°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#222987
RGBrgb(34, 41, 135)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(74.8%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.57, 30.89, -53.17)
CIE-LCHlch(22.57, 61.49, 300.16°)
OKLaboklab(34.51% 0.0052 -0.1537)
OKLCHoklch(34.51% 0.154 271.9)
XYZxyz(5.8243, 3.6746, 23.3193)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222987 #878022
analogous
#225B87 #222987 #4E2287
triadic
#222987 #872229 #298722
tetradic
#222987 #87225B #878022 #22874E
square
#222987 #87225B #878022 #22874E
split-complementary
#222987 #874E22 #5B8722
monochromatic
#090B25 #161A56 #222987 #2E38B8 #5059D3

Accessibility & contrast

On white

12.10
#222987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222987
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222987#FFFFFF#000000##FFFFFF
##2229871.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222987;
/* rgb */ color: rgb(34, 41, 135);
/* oklch */ color: oklch(34.5% 0.154 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e63ab',
    500: '#222987',
    950: '#000000',
  },
}
SCSS
$custom: #222987;
$custom-light: #6e63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#222987",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 235.842,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3451,
    "c": 0.15384,
    "h": 271.9
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#222987
secondary
#B7AF4E
accent
#D845E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222987

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

Preview Lab → · Contrast checker → · Palette generator →

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