#222495#222495

#222495 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.178 H 271.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#222495
RGBrgb(34, 36, 149)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 77%, 58%)
CMYKcmyk(77.2%, 75.8%, 0%, 41.6%)
CIE-LABlab(22.90, 39.01, -61.32)
CIE-LCHlch(22.90, 72.68, 302.47°)
OKLaboklab(35.19% 0.0058 -0.1775)
OKLCHoklch(35.19% 0.178 271.9)
XYZxyz(6.7135, 3.7710, 28.8020)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222495 #959322
analogous
#225D95 #222495 #5A2295
triadic
#222495 #952224 #249522
tetradic
#222495 #95225D #959322 #22955A
square
#222495 #95225D #959322 #22955A
split-complementary
#222495 #955A22 #5D9522
monochromatic
#0B0C31 #171863 #222495 #2D30C7 #585BD9

Accessibility & contrast

On white

11.97
#222495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#222495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222495
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222495#FFFFFF#000000##FFFFFF
##2224951.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222495;
/* rgb */ color: rgb(34, 36, 149);
/* oklch */ color: oklch(35.2% 0.178 271.9);
Tailwind
colors: {
  custom: {
    50: '#7260b5',
    500: '#222495',
    950: '#000000',
  },
}
SCSS
$custom: #222495;
$custom-light: #7260b5;
$custom-dark: #000000;
JSON
{
  "hex": "#222495",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 238.957,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35188,
    "c": 0.17759,
    "h": 271.9
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#222495
secondary
#BDBB56
accent
#E342E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222495

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

Preview Lab → · Contrast checker → · Palette generator →

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