#222497#222497

#222497 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.180 H 271.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#222497
RGBrgb(34, 36, 151)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 77%, 59%)
CMYKcmyk(77.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(23.12, 39.70, -62.19)
CIE-LCHlch(23.12, 73.78, 302.56°)
OKLaboklab(35.41% 0.0054 -0.18)
OKLCHoklch(35.41% 0.18 271.7)
XYZxyz(6.8746, 3.8355, 29.6502)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222497 #979522
analogous
#225F97 #222497 #5B2297
triadic
#222497 #972224 #249722
tetradic
#222497 #97225F #979522 #22975B
square
#222497 #97225F #979522 #22975B
split-complementary
#222497 #975B22 #5F9722
monochromatic
#0C0C33 #171865 #222497 #2D30C9 #5A5CDA

Accessibility & contrast

On white

11.88
#222497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222497
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222497#FFFFFF#000000##FFFFFF
##2224971.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222497;
/* rgb */ color: rgb(34, 36, 151);
/* oklch */ color: oklch(35.4% 0.180 271.7);
Tailwind
colors: {
  custom: {
    50: '#7260b7',
    500: '#222497',
    950: '#000000',
  },
}
SCSS
$custom: #222497;
$custom-light: #7260b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222497",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 238.974,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3541,
    "c": 0.1801,
    "h": 271.7
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#222497
secondary
#BEBC57
accent
#E342E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222497

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

Preview Lab → · Contrast checker → · Palette generator →

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