#222A9A#222A9A

#222A9A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.178 H 270.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#222A9A
RGBrgb(34, 42, 154)
HSLhsl(236, 64%, 37%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(77.9%, 72.7%, 0%, 39.6%)
CIE-LABlab(24.73, 37.16, -61.37)
CIE-LCHlch(24.73, 71.75, 301.19°)
OKLaboklab(36.65% 0.0023 -0.1777)
OKLCHoklch(36.65% 0.178 270.7)
XYZxyz(7.3184, 4.3283, 31.0153)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A9A #9A9222
analogous
#22669A #222A9A #56229A
triadic
#222A9A #9A222A #2A9A22
tetradic
#222A9A #9A2266 #9A9222 #229A56
square
#222A9A #9A2266 #9A9222 #229A56
split-complementary
#222A9A #9A5622 #669A22
monochromatic
#0C0F36 #171C68 #222A9A #2D38CC #5B64DB

Accessibility & contrast

On white

11.26
#222A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#222A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A9A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A9A#FFFFFF#000000##FFFFFF
##222A9A1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #222a9a;
/* rgb */ color: rgb(34, 42, 154);
/* oklch */ color: oklch(36.7% 0.178 270.7);
Tailwind
colors: {
  custom: {
    50: '#7264b9',
    500: '#222a9a',
    950: '#000000',
  },
}
SCSS
$custom: #222a9a;
$custom-light: #7264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#222a9a",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 236,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.1777,
    "h": 270.7
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#222A9A
secondary
#BFB858
accent
#DC41E7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #222A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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