#222286#222286

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

Color values

HEX#222286
RGBrgb(34, 34, 134)
HSLhsl(240, 60%, 33%)
HSVhsv(240, 75%, 53%)
CMYKcmyk(74.6%, 74.6%, 0%, 47.5%)
CIE-LABlab(20.85, 34.97, -55.37)
CIE-LCHlch(20.85, 65.49, 302.27°)
OKLaboklab(33.24% 0.0095 -0.1602)
OKLCHoklch(33.24% 0.16 273.4)
XYZxyz(5.5334, 3.2048, 22.8766)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222286 #868622
analogous
#225486 #222286 #542286
triadic
#222286 #862222 #228622
tetradic
#222286 #862254 #868622 #228654
square
#222286 #862254 #868622 #228654
split-complementary
#222286 #865422 #548622
monochromatic
#090924 #161655 #222286 #2E2EB7 #5050D3

Accessibility & contrast

On white

12.80
#222286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222286
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222286#FFFFFF#000000##FFFFFF
##2222861.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222286;
/* rgb */ color: rgb(34, 34, 134);
/* oklch */ color: oklch(33.2% 0.160 273.4);
Tailwind
colors: {
  custom: {
    50: '#6e5eaa',
    500: '#222286',
    950: '#000000',
  },
}
SCSS
$custom: #222286;
$custom-light: #6e5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#222286",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.16045,
    "h": 273.4
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#222286
secondary
#B6B64E
accent
#E345E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222286

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

Preview Lab → · Contrast checker → · Palette generator →

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