#222AA5#222AA5

#222AA5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.192 H 270.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#222AA5
RGBrgb(34, 42, 165)
HSLhsl(236, 66%, 39%)
HSVhsv(236, 79%, 65%)
CMYKcmyk(79.4%, 74.5%, 0%, 35.3%)
CIE-LABlab(25.90, 41.03, -66.14)
CIE-LCHlch(25.90, 77.83, 301.81°)
OKLaboklab(37.84% 0.0007 -0.1916)
OKLCHoklch(37.84% 0.192 270.2)
XYZxyz(8.2769, 4.7117, 36.0632)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222AA5 #A59D22
analogous
#226CA5 #222AA5 #5C22A5
triadic
#222AA5 #A5222A #2AA522
tetradic
#222AA5 #A5226C #A59D22 #22A55C
square
#222AA5 #A5226C #A59D22 #22A55C
split-complementary
#222AA5 #A55C22 #6CA522
monochromatic
#0D1040 #181D72 #222AA5 #303AD4 #636ADF

Accessibility & contrast

On white

10.81
#222AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#222AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222AA5
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222AA5#FFFFFF#000000##FFFFFF
##222AA51.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #222aa5;
/* rgb */ color: rgb(34, 42, 165);
/* oklch */ color: oklch(37.8% 0.192 270.2);
Tailwind
colors: {
  custom: {
    50: '#7565c1',
    500: '#222aa5',
    950: '#000000',
  },
}
SCSS
$custom: #222aa5;
$custom-light: #7565c1;
$custom-dark: #000000;
JSON
{
  "hex": "#222aa5",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 236.336,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37836,
    "c": 0.19157,
    "h": 270.2
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#222AA5
secondary
#C4BE5F
accent
#DE3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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