#222A9D#222A9D

#222A9D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.182 H 270.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#222A9D
RGBrgb(34, 42, 157)
HSLhsl(236, 64%, 37%)
HSVhsv(236, 78%, 62%)
CMYKcmyk(78.3%, 73.2%, 0%, 38.4%)
CIE-LABlab(25.04, 38.23, -62.69)
CIE-LCHlch(25.04, 73.42, 301.37°)
OKLaboklab(36.97% 0.0018 -0.1815)
OKLCHoklch(36.97% 0.182 270.6)
XYZxyz(7.5714, 4.4295, 32.3477)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A9D #9D9522
analogous
#22679D #222A9D #58229D
triadic
#222A9D #9D222A #2A9D22
tetradic
#222A9D #9D2267 #9D9522 #229D58
square
#222A9D #9D2267 #9D9522 #229D58
split-complementary
#222A9D #9D5822 #679D22
monochromatic
#0C0F38 #171D6B #222A9D #2D37CF #5D66DC

Accessibility & contrast

On white

11.13
#222A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222A9D
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A9D#FFFFFF#000000##FFFFFF
##222A9D1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #222a9d;
/* rgb */ color: rgb(34, 42, 157);
/* oklch */ color: oklch(37.0% 0.182 270.6);
Tailwind
colors: {
  custom: {
    50: '#7364bb',
    500: '#222a9d',
    950: '#000000',
  },
}
SCSS
$custom: #222a9d;
$custom-light: #7364bb;
$custom-dark: #000000;
JSON
{
  "hex": "#222a9d",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 236.098,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36973,
    "c": 0.18153,
    "h": 270.6
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#222A9D
secondary
#C1BA5A
accent
#DD40E7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #222A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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