#222187#222187

#222187 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.163 H 273.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#222187
RGBrgb(34, 33, 135)
HSLhsl(241, 61%, 33%)
HSVhsv(241, 76%, 53%)
CMYKcmyk(74.8%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.74, 35.92, -56.18)
CIE-LCHlch(20.74, 66.68, 302.60°)
OKLaboklab(33.2% 0.0098 -0.1625)
OKLCHoklch(33.2% 0.163 273.5)
XYZxyz(5.5753, 3.1765, 23.2363)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222187 #868721
analogous
#215387 #222187 #552187
triadic
#222187 #872221 #218722
tetradic
#222187 #872153 #868721 #218755
square
#222187 #872153 #868721 #218755
split-complementary
#222187 #875521 #538721
monochromatic
#090925 #161556 #222187 #2E2DB8 #504FD4

Accessibility & contrast

On white

12.84
#222187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#222187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222187
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222187#FFFFFF#000000##FFFFFF
##2221871.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222187;
/* rgb */ color: rgb(34, 33, 135);
/* oklch */ color: oklch(33.2% 0.163 273.5);
Tailwind
colors: {
  custom: {
    50: '#6e5eab',
    500: '#222187',
    950: '#000000',
  },
}
SCSS
$custom: #222187;
$custom-light: #6e5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#222187",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 240.588,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33198,
    "c": 0.16282,
    "h": 273.5
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222187

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

Preview Lab → · Contrast checker → · Palette generator →

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