#222897#222897

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

Color values

HEX#222897
RGBrgb(34, 40, 151)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 77%, 59%)
CMYKcmyk(77.5%, 73.5%, 0%, 40.8%)
CIE-LABlab(23.97, 37.32, -60.78)
CIE-LCHlch(23.97, 71.32, 301.55°)
OKLaboklab(36.02% 0.0036 -0.176)
OKLCHoklch(36.02% 0.176 271.2)
XYZxyz(7.0025, 4.0913, 29.6928)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222897 #979122
analogous
#226397 #222897 #572297
triadic
#222897 #972228 #289722
tetradic
#222897 #972263 #979122 #229757
square
#222897 #972263 #979122 #229757
split-complementary
#222897 #975722 #639722
monochromatic
#0C0E33 #171B65 #222897 #2D35C9 #5A60DA

Accessibility & contrast

On white

11.55
#222897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#222897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222897
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222897#FFFFFF#000000##FFFFFF
##2228971.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222897;
/* rgb */ color: rgb(34, 40, 151);
/* oklch */ color: oklch(36.0% 0.176 271.2);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#222897',
    950: '#000000',
  },
}
SCSS
$custom: #222897;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222897",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 236.923,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36016,
    "c": 0.176,
    "h": 271.2
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222897

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

Preview Lab → · Contrast checker → · Palette generator →

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