#222496#222496

#222496 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.179 H 271.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#222496
RGBrgb(34, 36, 150)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 77%, 59%)
CMYKcmyk(77.3%, 76%, 0%, 41.2%)
CIE-LABlab(23.01, 39.36, -61.75)
CIE-LCHlch(23.01, 73.23, 302.51°)
OKLaboklab(35.3% 0.0056 -0.1788)
OKLCHoklch(35.3% 0.179 271.8)
XYZxyz(6.7937, 3.8031, 29.2243)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222496 #969422
analogous
#225E96 #222496 #5A2296
triadic
#222496 #962224 #249622
tetradic
#222496 #96225E #969422 #22965A
square
#222496 #96225E #969422 #22965A
split-complementary
#222496 #965A22 #5E9622
monochromatic
#0B0C32 #171864 #222496 #2D30C8 #595BD9

Accessibility & contrast

On white

11.93
#222496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#222496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222496
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222496#FFFFFF#000000##FFFFFF
##2224961.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222496;
/* rgb */ color: rgb(34, 36, 150);
/* oklch */ color: oklch(35.3% 0.179 271.8);
Tailwind
colors: {
  custom: {
    50: '#7260b6',
    500: '#222496',
    950: '#000000',
  },
}
SCSS
$custom: #222496;
$custom-light: #7260b6;
$custom-dark: #000000;
JSON
{
  "hex": "#222496",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 238.966,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35299,
    "c": 0.17885,
    "h": 271.8
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222496

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

Preview Lab → · Contrast checker → · Palette generator →

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