#222396#222396

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

Color values

HEX#222396
RGBrgb(34, 35, 150)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 77%, 59%)
CMYKcmyk(77.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(22.80, 39.94, -62.09)
CIE-LCHlch(22.80, 73.83, 302.75°)
OKLaboklab(35.15% 0.0061 -0.1797)
OKLCHoklch(35.15% 0.18 271.9)
XYZxyz(6.7639, 3.7434, 29.2143)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222396 #969522
analogous
#225D96 #222396 #5B2296
triadic
#222396 #962223 #239622
tetradic
#222396 #96225D #969522 #22965B
square
#222396 #96225D #969522 #22965B
split-complementary
#222396 #965B22 #5D9622
monochromatic
#0B0C32 #171764 #222396 #2D2FC8 #595AD9

Accessibility & contrast

On white

12.01
#222396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222396
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222396#FFFFFF#000000##FFFFFF
##2223961.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222396;
/* rgb */ color: rgb(34, 35, 150);
/* oklch */ color: oklch(35.2% 0.180 271.9);
Tailwind
colors: {
  custom: {
    50: '#7260b6',
    500: '#222396',
    950: '#000000',
  },
}
SCSS
$custom: #222396;
$custom-light: #7260b6;
$custom-dark: #000000;
JSON
{
  "hex": "#222396",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 239.483,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35154,
    "c": 0.17984,
    "h": 271.9
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#222396
secondary
#BEBD56
accent
#E542E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222396

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

Preview Lab → · Contrast checker → · Palette generator →

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