#222AA1#222AA1

#222AA1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.187 H 270.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#222AA1
RGBrgb(34, 42, 161)
HSLhsl(236, 65%, 38%)
HSVhsv(236, 79%, 63%)
CMYKcmyk(78.9%, 73.9%, 0%, 36.9%)
CIE-LABlab(25.47, 39.64, -64.42)
CIE-LCHlch(25.47, 75.64, 301.60°)
OKLaboklab(37.4% 0.0013 -0.1866)
OKLCHoklch(37.4% 0.187 270.4)
XYZxyz(7.9185, 4.5683, 34.1757)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222AA1 #A19922
analogous
#226AA1 #222AA1 #5922A1
triadic
#222AA1 #A1222A #2AA122
tetradic
#222AA1 #A1226A #A19922 #22A159
square
#222AA1 #A1226A #A19922 #22A159
split-complementary
#222AA1 #A15922 #6AA122
monochromatic
#0D103C #171D6E #222AA1 #2D38D3 #6068DD

Accessibility & contrast

On white

10.97
#222AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#222AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222AA1
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222AA1#FFFFFF#000000##FFFFFF
##222AA11.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #222aa1;
/* rgb */ color: rgb(34, 42, 161);
/* oklch */ color: oklch(37.4% 0.187 270.4);
Tailwind
colors: {
  custom: {
    50: '#7465be',
    500: '#222aa1',
    950: '#000000',
  },
}
SCSS
$custom: #222aa1;
$custom-light: #7465be;
$custom-dark: #000000;
JSON
{
  "hex": "#222aa1",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 236.22,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37403,
    "c": 0.18657,
    "h": 270.4
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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