#222186#222186

#222186 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.162 H 273.6°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#222186
RGBrgb(34, 33, 134)
HSLhsl(241, 60%, 33%)
HSVhsv(241, 75%, 53%)
CMYKcmyk(74.6%, 75.4%, 0%, 47.5%)
CIE-LABlab(20.63, 35.57, -55.73)
CIE-LCHlch(20.63, 66.11, 302.55°)
OKLaboklab(33.09% 0.01 -0.1612)
OKLCHoklch(33.09% 0.162 273.6)
XYZxyz(5.5052, 3.1485, 22.8672)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222186 #858621
analogous
#215286 #222186 #542186
triadic
#222186 #862221 #218622
tetradic
#222186 #862152 #858621 #218654
square
#222186 #862152 #858621 #218654
split-complementary
#222186 #865421 #528621
monochromatic
#090924 #161555 #222186 #2E2DB7 #4F4ED3

Accessibility & contrast

On white

12.89
#222186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#222186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222186
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222186#FFFFFF#000000##FFFFFF
##2221861.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222186;
/* rgb */ color: rgb(34, 33, 134);
/* oklch */ color: oklch(33.1% 0.162 273.6);
Tailwind
colors: {
  custom: {
    50: '#6e5daa',
    500: '#222186',
    950: '#000000',
  },
}
SCSS
$custom: #222186;
$custom-light: #6e5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#222186",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 240.594,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33088,
    "c": 0.16152,
    "h": 273.6
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#222186
secondary
#B6B74C
accent
#E444E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222186

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

Preview Lab → · Contrast checker → · Palette generator →

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