#222898#222898

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

Color values

HEX#222898
RGBrgb(34, 40, 152)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 78%, 60%)
CMYKcmyk(77.6%, 73.7%, 0%, 40.4%)
CIE-LABlab(24.08, 37.67, -61.22)
CIE-LCHlch(24.08, 71.88, 301.61°)
OKLaboklab(36.12% 0.0035 -0.1772)
OKLCHoklch(36.12% 0.177 271.1)
XYZxyz(7.0841, 4.1239, 30.1223)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222898 #989222
analogous
#226398 #222898 #572298
triadic
#222898 #982228 #289822
tetradic
#222898 #982263 #989222 #229857
square
#222898 #982263 #989222 #229857
split-complementary
#222898 #985722 #639822
monochromatic
#0C0E34 #171B66 #222898 #2D35CA #5A61DA

Accessibility & contrast

On white

11.51
#222898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222898
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222898#FFFFFF#000000##FFFFFF
##2228981.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222898;
/* rgb */ color: rgb(34, 40, 152);
/* oklch */ color: oklch(36.1% 0.177 271.1);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#222898',
    950: '#000000',
  },
}
SCSS
$custom: #222898;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222898",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 236.949,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36123,
    "c": 0.17727,
    "h": 271.1
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#222898
secondary
#BEB957
accent
#DE41E6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222898

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

Preview Lab → · Contrast checker → · Palette generator →

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