#222A97#222A97

#222A97 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.174 H 270.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#222A97
RGBrgb(34, 42, 151)
HSLhsl(236, 63%, 36%)
HSVhsv(236, 77%, 59%)
CMYKcmyk(77.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.42, 36.09, -60.05)
CIE-LCHlch(24.42, 70.06, 301.01°)
OKLaboklab(36.34% 0.0027 -0.1738)
OKLCHoklch(36.34% 0.174 270.9)
XYZxyz(7.0717, 4.2296, 29.7159)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A97 #978F22
analogous
#226597 #222A97 #552297
triadic
#222A97 #97222A #2A9722
tetradic
#222A97 #972265 #978F22 #229755
square
#222A97 #972265 #978F22 #229755
split-complementary
#222A97 #975522 #659722
monochromatic
#0C0E33 #171C65 #222A97 #2D38C9 #5A62DA

Accessibility & contrast

On white

11.38
#222A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#222A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A97
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A97#FFFFFF#000000##FFFFFF
##222A971.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #222a97;
/* rgb */ color: rgb(34, 42, 151);
/* oklch */ color: oklch(36.3% 0.174 270.9);
Tailwind
colors: {
  custom: {
    50: '#7264b7',
    500: '#222a97',
    950: '#000000',
  },
}
SCSS
$custom: #222a97;
$custom-light: #7264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222a97",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 235.897,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.17385,
    "h": 270.9
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#222A97
secondary
#BEB757
accent
#DB42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222A97

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

Preview Lab → · Contrast checker → · Palette generator →

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