#222196#222196

#222196 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.182 H 272.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#222196
RGBrgb(34, 33, 150)
HSLhsl(241, 64%, 36%)
HSVhsv(241, 78%, 59%)
CMYKcmyk(77.3%, 78%, 0%, 41.2%)
CIE-LABlab(22.41, 41.07, -62.75)
CIE-LCHlch(22.41, 75.00, 303.21°)
OKLaboklab(34.87% 0.0069 -0.1816)
OKLCHoklch(34.87% 0.182 272.2)
XYZxyz(6.7067, 3.6291, 29.1953)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222196 #959621
analogous
#215A96 #222196 #5C2196
triadic
#222196 #962221 #219622
tetradic
#222196 #96215A #959621 #21965C
square
#222196 #96215A #959621 #21965C
split-complementary
#222196 #965C21 #5A9621
monochromatic
#0B0B32 #171664 #222196 #2D2CC8 #5857DA

Accessibility & contrast

On white

12.17
#222196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#222196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222196
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222196#FFFFFF#000000##FFFFFF
##2221961.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222196;
/* rgb */ color: rgb(34, 33, 150);
/* oklch */ color: oklch(34.9% 0.182 272.2);
Tailwind
colors: {
  custom: {
    50: '#725eb6',
    500: '#222196',
    950: '#000000',
  },
}
SCSS
$custom: #222196;
$custom-light: #725eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#222196",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 240.513,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34872,
    "c": 0.18177,
    "h": 272.2
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#222196
secondary
#BDBE55
accent
#E741E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #222196

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

Preview Lab → · Contrast checker → · Palette generator →

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