#222386#222386

#222386 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.159 H 273.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#222386
RGBrgb(34, 35, 134)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(74.6%, 73.9%, 0%, 47.5%)
CIE-LABlab(21.07, 34.35, -55.01)
CIE-LCHlch(21.07, 64.85, 301.99°)
OKLaboklab(33.4% 0.0089 -0.1591)
OKLCHoklch(33.4% 0.159 273.2)
XYZxyz(5.5624, 3.2628, 22.8863)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222386 #868522
analogous
#225586 #222386 #532286
triadic
#222386 #862223 #238622
tetradic
#222386 #862255 #868522 #228653
square
#222386 #862255 #868522 #228653
split-complementary
#222386 #865322 #558622
monochromatic
#090924 #161655 #222386 #2E30B7 #5051D3

Accessibility & contrast

On white

12.71
#222386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#222386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222386
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222386#FFFFFF#000000##FFFFFF
##2223861.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222386;
/* rgb */ color: rgb(34, 35, 134);
/* oklch */ color: oklch(33.4% 0.159 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e5faa',
    500: '#222386',
    950: '#000000',
  },
}
SCSS
$custom: #222386;
$custom-light: #6e5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#222386",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 239.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33401,
    "c": 0.15936,
    "h": 273.2
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222386

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

Preview Lab → · Contrast checker → · Palette generator →

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