#222896#222896

#222896 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.175 H 271.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#222896
RGBrgb(34, 40, 150)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 59%)
CMYKcmyk(77.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(23.87, 36.97, -60.34)
CIE-LCHlch(23.87, 70.76, 301.49°)
OKLaboklab(35.91% 0.0038 -0.1747)
OKLCHoklch(35.91% 0.175 271.2)
XYZxyz(6.9216, 4.0589, 29.2669)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222896 #969022
analogous
#226296 #222896 #562296
triadic
#222896 #962228 #289622
tetradic
#222896 #962262 #969022 #229656
square
#222896 #962262 #969022 #229656
split-complementary
#222896 #965622 #629622
monochromatic
#0B0D32 #171B64 #222896 #2D35C8 #5960D9

Accessibility & contrast

On white

11.59
#222896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#222896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222896
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222896#FFFFFF#000000##FFFFFF
##2228961.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222896;
/* rgb */ color: rgb(34, 40, 150);
/* oklch */ color: oklch(35.9% 0.175 271.2);
Tailwind
colors: {
  custom: {
    50: '#7163b6',
    500: '#222896',
    950: '#000000',
  },
}
SCSS
$custom: #222896;
$custom-light: #7163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#222896",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 236.897,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35909,
    "c": 0.17472,
    "h": 271.2
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#222896
secondary
#BEB856
accent
#DE42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222896

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

Preview Lab → · Contrast checker → · Palette generator →

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