#222A9F#222A9F

#222A9F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.184 H 270.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#222A9F
RGBrgb(34, 42, 159)
HSLhsl(236, 65%, 38%)
HSVhsv(236, 79%, 62%)
CMYKcmyk(78.6%, 73.6%, 0%, 37.6%)
CIE-LABlab(25.26, 38.93, -63.56)
CIE-LCHlch(25.26, 74.53, 301.49°)
OKLaboklab(37.19% 0.0016 -0.184)
OKLCHoklch(37.19% 0.184 270.5)
XYZxyz(7.7435, 4.4984, 33.2543)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A9F #9F9722
analogous
#22689F #222A9F #58229F
triadic
#222A9F #9F222A #2A9F22
tetradic
#222A9F #9F2268 #9F9722 #229F58
square
#222A9F #9F2268 #9F9722 #229F58
split-complementary
#222A9F #9F5822 #689F22
monochromatic
#0C0F3A #171D6D #222A9F #2D37D1 #5F67DD

Accessibility & contrast

On white

11.05
#222A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222A9F
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A9F#FFFFFF#000000##FFFFFF
##222A9F1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #222a9f;
/* rgb */ color: rgb(34, 42, 159);
/* oklch */ color: oklch(37.2% 0.184 270.5);
Tailwind
colors: {
  custom: {
    50: '#7464bd',
    500: '#222a9f',
    950: '#000000',
  },
}
SCSS
$custom: #222a9f;
$custom-light: #7464bd;
$custom-dark: #000000;
JSON
{
  "hex": "#222a9f",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 236.16,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37187,
    "c": 0.18406,
    "h": 270.5
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#222A9F
secondary
#C1BB5B
accent
#DD40E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #222A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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