#222A9C#222A9C

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

Color values

HEX#222A9C
RGBrgb(34, 42, 156)
HSLhsl(236, 64%, 37%)
HSVhsv(236, 78%, 61%)
CMYKcmyk(78.2%, 73.1%, 0%, 38.8%)
CIE-LABlab(24.94, 37.87, -62.25)
CIE-LCHlch(24.94, 72.87, 301.32°)
OKLaboklab(36.87% 0.002 -0.1802)
OKLCHoklch(36.87% 0.18 270.6)
XYZxyz(7.4864, 4.3955, 31.8999)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A9C #9C9422
analogous
#22679C #222A9C #57229C
triadic
#222A9C #9C222A #2A9C22
tetradic
#222A9C #9C2267 #9C9422 #229C57
square
#222A9C #9C2267 #9C9422 #229C57
split-complementary
#222A9C #9C5722 #679C22
monochromatic
#0C0F38 #171C6A #222A9C #2D38CE #5D65DC

Accessibility & contrast

On white

11.17
#222A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#222A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A9C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A9C#FFFFFF#000000##FFFFFF
##222A9C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #222a9c;
/* rgb */ color: rgb(34, 42, 156);
/* oklch */ color: oklch(36.9% 0.180 270.6);
Tailwind
colors: {
  custom: {
    50: '#7364ba',
    500: '#222a9c',
    950: '#000000',
  },
}
SCSS
$custom: #222a9c;
$custom-light: #7364ba;
$custom-dark: #000000;
JSON
{
  "hex": "#222a9c",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 236.066,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36866,
    "c": 0.18026,
    "h": 270.6
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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