#222787#222787

#222787 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.156 H 272.4°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#222787
RGBrgb(34, 39, 135)
HSLhsl(237, 60%, 33%)
HSVhsv(237, 75%, 53%)
CMYKcmyk(74.8%, 71.1%, 0%, 47.1%)
CIE-LABlab(22.09, 32.19, -53.95)
CIE-LCHlch(22.09, 62.83, 300.82°)
OKLaboklab(34.17% 0.0064 -0.156)
OKLCHoklch(34.17% 0.156 272.4)
XYZxyz(5.7569, 3.5398, 23.2968)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222787 #878222
analogous
#225987 #222787 #4F2287
triadic
#222787 #872227 #278722
tetradic
#222787 #872259 #878222 #22874F
square
#222787 #872259 #878222 #22874F
split-complementary
#222787 #874F22 #598722
monochromatic
#090B25 #161956 #222787 #2E35B8 #5057D3

Accessibility & contrast

On white

12.30
#222787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222787
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222787#FFFFFF#000000##FFFFFF
##2227871.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222787;
/* rgb */ color: rgb(34, 39, 135);
/* oklch */ color: oklch(34.2% 0.156 272.4);
Tailwind
colors: {
  custom: {
    50: '#6e61ab',
    500: '#222787',
    950: '#000000',
  },
}
SCSS
$custom: #222787;
$custom-light: #6e61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#222787",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 237.03,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34165,
    "c": 0.15618,
    "h": 272.4
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#222787
secondary
#B7B14E
accent
#DB45E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222787

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

Preview Lab → · Contrast checker → · Palette generator →

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