#222889#222889

#222889 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.158 H 272.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#222889
RGBrgb(34, 40, 137)
HSLhsl(237, 60%, 34%)
HSVhsv(237, 75%, 54%)
CMYKcmyk(75.2%, 70.8%, 0%, 46.3%)
CIE-LABlab(22.53, 32.28, -54.48)
CIE-LCHlch(22.53, 63.33, 300.64°)
OKLaboklab(34.54% 0.0056 -0.1576)
OKLCHoklch(34.54% 0.158 272)
XYZxyz(5.9323, 3.6632, 24.0565)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222889 #898322
analogous
#225B89 #222889 #4F2289
triadic
#222889 #892228 #288922
tetradic
#222889 #89225B #898322 #22894F
square
#222889 #89225B #898322 #22894F
split-complementary
#222889 #894F22 #5B8922
monochromatic
#0A0B27 #161A58 #222889 #2E36BA #5159D4

Accessibility & contrast

On white

12.12
#222889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#222889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222889
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222889#FFFFFF#000000##FFFFFF
##2228891.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222889;
/* rgb */ color: rgb(34, 40, 137);
/* oklch */ color: oklch(34.5% 0.158 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#222889',
    950: '#000000',
  },
}
SCSS
$custom: #222889;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222889",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 236.505,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.1577,
    "h": 272
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#222889
secondary
#B8B14F
accent
#DA44E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222889

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

Preview Lab → · Contrast checker → · Palette generator →

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