#222586#222586

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

Color values

HEX#222586
RGBrgb(34, 37, 134)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 53%)
CMYKcmyk(74.6%, 72.4%, 0%, 47.5%)
CIE-LABlab(21.52, 33.10, -54.26)
CIE-LCHlch(21.52, 63.56, 301.38°)
OKLaboklab(33.73% 0.0078 -0.1569)
OKLCHoklch(33.73% 0.157 272.8)
XYZxyz(5.6229, 3.3839, 22.9065)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222586 #868322
analogous
#225786 #222586 #512286
triadic
#222586 #862225 #258622
tetradic
#222586 #862257 #868322 #228651
square
#222586 #862257 #868322 #228651
split-complementary
#222586 #865122 #578622
monochromatic
#090A24 #161855 #222586 #2E32B7 #5054D3

Accessibility & contrast

On white

12.52
#222586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#222586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222586
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222586#FFFFFF#000000##FFFFFF
##2225861.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222586;
/* rgb */ color: rgb(34, 37, 134);
/* oklch */ color: oklch(33.7% 0.157 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e60aa',
    500: '#222586',
    950: '#000000',
  },
}
SCSS
$custom: #222586;
$custom-light: #6e60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#222586",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 238.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33725,
    "c": 0.15713,
    "h": 272.8
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#222586
secondary
#B6B34E
accent
#DE45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222586

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

Preview Lab → · Contrast checker → · Palette generator →

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