#222486#222486

#222486 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.158 H 273.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#222486
RGBrgb(34, 36, 134)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(74.6%, 73.1%, 0%, 47.5%)
CIE-LABlab(21.29, 33.73, -54.64)
CIE-LCHlch(21.29, 64.21, 301.69°)
OKLaboklab(33.56% 0.0083 -0.158)
OKLCHoklch(33.56% 0.158 273)
XYZxyz(5.5922, 3.3225, 22.8962)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222486 #868422
analogous
#225686 #222486 #522286
triadic
#222486 #862224 #248622
tetradic
#222486 #862256 #868422 #228652
square
#222486 #862256 #868422 #228652
split-complementary
#222486 #865222 #568622
monochromatic
#090A24 #161755 #222486 #2E31B7 #5052D3

Accessibility & contrast

On white

12.62
#222486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#222486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222486
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222486#FFFFFF#000000##FFFFFF
##2224861.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222486;
/* rgb */ color: rgb(34, 36, 134);
/* oklch */ color: oklch(33.6% 0.158 273.0);
Tailwind
colors: {
  custom: {
    50: '#6e5faa',
    500: '#222486',
    950: '#000000',
  },
}
SCSS
$custom: #222486;
$custom-light: #6e5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#222486",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 238.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.15826,
    "h": 273
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222486

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

Preview Lab → · Contrast checker → · Palette generator →

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