#222498#222498

#222498 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.181 H 271.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#222498
RGBrgb(34, 36, 152)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 78%, 60%)
CMYKcmyk(77.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(23.23, 40.05, -62.62)
CIE-LCHlch(23.23, 74.33, 302.60°)
OKLaboklab(35.52% 0.0053 -0.1813)
OKLCHoklch(35.52% 0.181 271.7)
XYZxyz(6.9561, 3.8681, 30.0797)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222498 #989622
analogous
#225F98 #222498 #5B2298
triadic
#222498 #982224 #249822
tetradic
#222498 #98225F #989622 #22985B
square
#222498 #98225F #989622 #22985B
split-complementary
#222498 #985B22 #5F9822
monochromatic
#0C0C34 #171866 #222498 #2D30CA #5A5CDA

Accessibility & contrast

On white

11.84
#222498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222498
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222498#FFFFFF#000000##FFFFFF
##2224981.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222498;
/* rgb */ color: rgb(34, 36, 152);
/* oklch */ color: oklch(35.5% 0.181 271.7);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#222498',
    950: '#000000',
  },
}
SCSS
$custom: #222498;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222498",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 238.983,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35521,
    "c": 0.18136,
    "h": 271.7
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

primary
#222498
secondary
#BEBD57
accent
#E441E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222498

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

Preview Lab → · Contrast checker → · Palette generator →

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