#222487#222487

#222487 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.160 H 272.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#222487
RGBrgb(34, 36, 135)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(74.8%, 73.3%, 0%, 47.1%)
CIE-LABlab(21.40, 34.09, -55.09)
CIE-LCHlch(21.40, 64.78, 301.75°)
OKLaboklab(33.67% 0.0082 -0.1594)
OKLCHoklch(33.67% 0.16 272.9)
XYZxyz(5.6623, 3.3505, 23.2653)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222487 #878522
analogous
#225687 #222487 #522287
triadic
#222487 #872224 #248722
tetradic
#222487 #872256 #878522 #228752
square
#222487 #872256 #878522 #228752
split-complementary
#222487 #875222 #568722
monochromatic
#090A25 #161756 #222487 #2E31B8 #5053D3

Accessibility & contrast

On white

12.57
#222487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#222487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222487
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222487#FFFFFF#000000##FFFFFF
##2224871.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222487;
/* rgb */ color: rgb(34, 36, 135);
/* oklch */ color: oklch(33.7% 0.160 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e5fab',
    500: '#222487',
    950: '#000000',
  },
}
SCSS
$custom: #222487;
$custom-light: #6e5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#222487",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 238.812,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.15958,
    "h": 272.9
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#222487
secondary
#B7B44E
accent
#E045E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222487

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

Preview Lab → · Contrast checker → · Palette generator →

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