#222D99#222D99

#222D99 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.173 H 270.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#222D99
RGBrgb(34, 45, 153)
HSLhsl(234, 64%, 37%)
HSVhsv(234, 78%, 60%)
CMYKcmyk(77.8%, 70.6%, 0%, 40%)
CIE-LABlab(25.31, 34.92, -59.80)
CIE-LCHlch(25.31, 69.25, 300.28°)
OKLaboklab(37.04% 0.0009 -0.1731)
OKLCHoklch(37.04% 0.173 270.3)
XYZxyz(7.3459, 4.5160, 30.6153)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D99 #998E22
analogous
#226999 #222D99 #532299
triadic
#222D99 #99222D #2D9922
tetradic
#222D99 #992269 #998E22 #229953
square
#222D99 #992269 #998E22 #229953
split-complementary
#222D99 #995322 #699922
monochromatic
#0C1035 #171E67 #222D99 #2D3CCB #5B67DB

Accessibility & contrast

On white

11.03
#222D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#222D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D99
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D99#FFFFFF#000000##FFFFFF
##222D991.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #222d99;
/* rgb */ color: rgb(34, 45, 153);
/* oklch */ color: oklch(37.0% 0.173 270.3);
Tailwind
colors: {
  custom: {
    50: '#7266b8',
    500: '#222d99',
    950: '#000000',
  },
}
SCSS
$custom: #222d99;
$custom-light: #7266b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222d99",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 234.454,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3704,
    "c": 0.17312,
    "h": 270.3
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

primary
#222D99
secondary
#BFB558
accent
#D741E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #222D99

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

Preview Lab → · Contrast checker → · Palette generator →

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