#222A9B#222A9B

#222A9B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.179 H 270.7°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#222A9B
RGBrgb(34, 42, 155)
HSLhsl(236, 64%, 37%)
HSVhsv(236, 78%, 61%)
CMYKcmyk(78.1%, 72.9%, 0%, 39.2%)
CIE-LABlab(24.83, 37.52, -61.81)
CIE-LCHlch(24.83, 72.31, 301.25°)
OKLaboklab(36.76% 0.0021 -0.179)
OKLCHoklch(36.76% 0.179 270.7)
XYZxyz(7.4020, 4.3618, 31.4558)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A9B #9B9322
analogous
#22679B #222A9B #57229B
triadic
#222A9B #9B222A #2A9B22
tetradic
#222A9B #9B2267 #9B9322 #229B57
square
#222A9B #9B2267 #9B9322 #229B57
split-complementary
#222A9B #9B5722 #679B22
monochromatic
#0C0F37 #171C69 #222A9B #2D38CD #5C65DB

Accessibility & contrast

On white

11.21
#222A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222A9B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A9B#FFFFFF#000000##FFFFFF
##222A9B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222a9b;
/* rgb */ color: rgb(34, 42, 155);
/* oklch */ color: oklch(36.8% 0.179 270.7);
Tailwind
colors: {
  custom: {
    50: '#7364ba',
    500: '#222a9b',
    950: '#000000',
  },
}
SCSS
$custom: #222a9b;
$custom-light: #7364ba;
$custom-dark: #000000;
JSON
{
  "hex": "#222a9b",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 236.033,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36759,
    "c": 0.17898,
    "h": 270.7
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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