#222AA8#222AA8

#222AA8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.195 H 270.1°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#222AA8
RGBrgb(34, 42, 168)
HSLhsl(236, 66%, 40%)
HSVhsv(236, 80%, 66%)
CMYKcmyk(79.8%, 75%, 0%, 34.1%)
CIE-LABlab(26.22, 42.07, -67.42)
CIE-LCHlch(26.22, 79.47, 301.96°)
OKLaboklab(38.16% 0.0002 -0.1953)
OKLCHoklch(38.16% 0.195 270.1)
XYZxyz(8.5531, 4.8222, 37.5182)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222AA8 #A8A022
analogous
#226DA8 #222AA8 #5D22A8
triadic
#222AA8 #A8222A #2AA822
tetradic
#222AA8 #A8226D #A8A022 #22A85D
square
#222AA8 #A8226D #A8A022 #22A85D
split-complementary
#222AA8 #A85D22 #6DA822
monochromatic
#0D1142 #181D75 #222AA8 #323CD5 #656CE0

Accessibility & contrast

On white

10.69
#222AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#222AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222AA8
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222AA8#FFFFFF#000000##FFFFFF
##222AA81.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222aa8;
/* rgb */ color: rgb(34, 42, 168);
/* oklch */ color: oklch(38.2% 0.195 270.1);
Tailwind
colors: {
  custom: {
    50: '#7665c3',
    500: '#222aa8',
    950: '#000000',
  },
}
SCSS
$custom: #222aa8;
$custom-light: #7665c3;
$custom-dark: #000000;
JSON
{
  "hex": "#222aa8",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 236.418,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.19527,
    "h": 270.1
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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