#222AA6#222AA6

#222AA6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.193 H 270.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#222AA6
RGBrgb(34, 42, 166)
HSLhsl(236, 66%, 39%)
HSVhsv(236, 80%, 65%)
CMYKcmyk(79.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.00, 41.38, -66.57)
CIE-LCHlch(26.00, 78.38, 301.86°)
OKLaboklab(37.95% 0.0005 -0.1928)
OKLCHoklch(37.95% 0.193 270.1)
XYZxyz(8.3682, 4.7482, 36.5445)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222AA6 #A69E22
analogous
#226CA6 #222AA6 #5C22A6
triadic
#222AA6 #A6222A #2AA622
tetradic
#222AA6 #A6226C #A69E22 #22A65C
square
#222AA6 #A6226C #A69E22 #22A65C
split-complementary
#222AA6 #A65C22 #6CA622
monochromatic
#0D1040 #181D73 #222AA6 #303AD5 #636BDF

Accessibility & contrast

On white

10.77
#222AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#222AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222AA6
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222AA6#FFFFFF#000000##FFFFFF
##222AA61.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222aa6;
/* rgb */ color: rgb(34, 42, 166);
/* oklch */ color: oklch(37.9% 0.193 270.1);
Tailwind
colors: {
  custom: {
    50: '#7565c2',
    500: '#222aa6',
    950: '#000000',
  },
}
SCSS
$custom: #222aa6;
$custom-light: #7565c2;
$custom-dark: #000000;
JSON
{
  "hex": "#222aa6",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 236.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37945,
    "c": 0.19281,
    "h": 270.1
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#222AA6
secondary
#C4BE5F
accent
#DF3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #222AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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