#222D97#222D97

#222D97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.171 H 270.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#222D97
RGBrgb(34, 45, 151)
HSLhsl(234, 63%, 36%)
HSVhsv(234, 77%, 59%)
CMYKcmyk(77.5%, 70.2%, 0%, 40.8%)
CIE-LABlab(25.11, 34.20, -58.91)
CIE-LCHlch(25.11, 68.11, 300.14°)
OKLaboklab(36.83% 0.0011 -0.1705)
OKLCHoklch(36.83% 0.171 270.4)
XYZxyz(7.1821, 4.4504, 29.7527)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D97 #978C22
analogous
#226897 #222D97 #522297
triadic
#222D97 #97222D #2D9722
tetradic
#222D97 #972268 #978C22 #229752
square
#222D97 #972268 #978C22 #229752
split-complementary
#222D97 #975222 #689722
monochromatic
#0C0F33 #171E65 #222D97 #2D3CC9 #5A66DA

Accessibility & contrast

On white

11.11
#222D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#222D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D97
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D97#FFFFFF#000000##FFFFFF
##222D971.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #222d97;
/* rgb */ color: rgb(34, 45, 151);
/* oklch */ color: oklch(36.8% 0.171 270.4);
Tailwind
colors: {
  custom: {
    50: '#7166b7',
    500: '#222d97',
    950: '#000000',
  },
}
SCSS
$custom: #222d97;
$custom-light: #7166b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222d97",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 234.359,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36834,
    "c": 0.17051,
    "h": 270.4
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#222D97
secondary
#BEB457
accent
#D742E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #222D97

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

Preview Lab → · Contrast checker → · Palette generator →

#222D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva