#222884#222884

#222884 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.151 H 272.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#222884
RGBrgb(34, 40, 132)
HSLhsl(236, 59%, 33%)
HSVhsv(236, 74%, 52%)
CMYKcmyk(74.2%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.03, 30.44, -52.17)
CIE-LCHlch(22.03, 60.40, 300.26°)
OKLaboklab(34.03% 0.0061 -0.1508)
OKLCHoklch(34.03% 0.151 272.3)
XYZxyz(5.5819, 3.5230, 22.2112)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222884 #847E22
analogous
#225984 #222884 #4D2284
triadic
#222884 #842228 #288422
tetradic
#222884 #842259 #847E22 #22844D
square
#222884 #842259 #847E22 #22844D
split-complementary
#222884 #844D22 #598422
monochromatic
#090B23 #151953 #222884 #2F37B5 #4F57D2

Accessibility & contrast

On white

12.32
#222884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222884
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222884#FFFFFF#000000##FFFFFF
##2228841.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222884;
/* rgb */ color: rgb(34, 40, 132);
/* oklch */ color: oklch(34.0% 0.151 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d62a9',
    500: '#222884',
    950: '#000000',
  },
}
SCSS
$custom: #222884;
$custom-light: #6d62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#222884",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 236.327,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34031,
    "c": 0.15096,
    "h": 272.3
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#222884
secondary
#B5AF4D
accent
#D946E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222884

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

Preview Lab → · Contrast checker → · Palette generator →

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