#222996#222996

#222996 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.174 H 271.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#222996
RGBrgb(34, 41, 150)
HSLhsl(236, 63%, 36%)
HSVhsv(236, 77%, 59%)
CMYKcmyk(77.3%, 72.7%, 0%, 41.2%)
CIE-LABlab(24.09, 36.35, -59.97)
CIE-LCHlch(24.09, 70.13, 301.22°)
OKLaboklab(36.07% 0.0033 -0.1736)
OKLCHoklch(36.07% 0.174 271.1)
XYZxyz(6.9558, 4.1272, 29.2783)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222996 #968F22
analogous
#226396 #222996 #552296
triadic
#222996 #962229 #299622
tetradic
#222996 #962263 #968F22 #229655
square
#222996 #962263 #968F22 #229655
split-complementary
#222996 #965522 #639622
monochromatic
#0B0E32 #171B64 #222996 #2D37C8 #5961D9

Accessibility & contrast

On white

11.50
#222996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#222996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222996
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222996#FFFFFF#000000##FFFFFF
##2229961.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222996;
/* rgb */ color: rgb(34, 41, 150);
/* oklch */ color: oklch(36.1% 0.174 271.1);
Tailwind
colors: {
  custom: {
    50: '#7163b6',
    500: '#222996',
    950: '#000000',
  },
}
SCSS
$custom: #222996;
$custom-light: #7163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#222996",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 236.379,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36068,
    "c": 0.17364,
    "h": 271.1
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#222996
secondary
#BEB756
accent
#DC42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222996

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

Preview Lab → · Contrast checker → · Palette generator →

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