#222989#222989

#222989 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.157 H 271.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#222989
RGBrgb(34, 41, 137)
HSLhsl(236, 60%, 34%)
HSVhsv(236, 75%, 54%)
CMYKcmyk(75.2%, 70.1%, 0%, 46.3%)
CIE-LABlab(22.76, 31.63, -54.09)
CIE-LCHlch(22.76, 62.66, 300.32°)
OKLaboklab(34.71% 0.005 -0.1565)
OKLCHoklch(34.71% 0.157 271.8)
XYZxyz(5.9665, 3.7315, 24.0679)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222989 #898222
analogous
#225C89 #222989 #4E2289
triadic
#222989 #892229 #298922
tetradic
#222989 #89225C #898222 #22894E
square
#222989 #89225C #898222 #22894E
split-complementary
#222989 #894E22 #5C8922
monochromatic
#0A0C27 #161A58 #222989 #2E38BA #515AD4

Accessibility & contrast

On white

12.02
#222989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#222989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222989
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222989#FFFFFF#000000##FFFFFF
##2229891.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.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: #222989;
/* rgb */ color: rgb(34, 41, 137);
/* oklch */ color: oklch(34.7% 0.157 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e63ac',
    500: '#222989',
    950: '#000000',
  },
}
SCSS
$custom: #222989;
$custom-light: #6e63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222989",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 235.922,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34714,
    "c": 0.15654,
    "h": 271.8
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#222989
secondary
#B8B04F
accent
#D944E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222989

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

Preview Lab → · Contrast checker → · Palette generator →

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