#222387#222387

#222387 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.161 H 273.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#222387
RGBrgb(34, 35, 135)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(74.8%, 74.1%, 0%, 47.1%)
CIE-LABlab(21.17, 34.71, -55.46)
CIE-LCHlch(21.17, 65.42, 302.04°)
OKLaboklab(33.51% 0.0087 -0.1604)
OKLCHoklch(33.51% 0.161 273.1)
XYZxyz(5.6324, 3.2908, 23.2553)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222387 #878622
analogous
#225587 #222387 #532287
triadic
#222387 #872223 #238722
tetradic
#222387 #872255 #878622 #228753
square
#222387 #872255 #878622 #228753
split-complementary
#222387 #875322 #558722
monochromatic
#090A25 #161656 #222387 #2E30B8 #5052D3

Accessibility & contrast

On white

12.66
#222387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#222387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222387
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222387#FFFFFF#000000##FFFFFF
##2223871.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222387;
/* rgb */ color: rgb(34, 35, 135);
/* oklch */ color: oklch(33.5% 0.161 273.1);
Tailwind
colors: {
  custom: {
    50: '#6e5fab',
    500: '#222387',
    950: '#000000',
  },
}
SCSS
$custom: #222387;
$custom-light: #6e5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#222387",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 239.406,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33508,
    "c": 0.16068,
    "h": 273.1
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#222387
secondary
#B7B54E
accent
#E145E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222387

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

Preview Lab → · Contrast checker → · Palette generator →

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