#222EA8#222EA8

#222EA8 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.191 H 269.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#222EA8
RGBrgb(34, 46, 168)
HSLhsl(235, 66%, 40%)
HSVhsv(235, 80%, 66%)
CMYKcmyk(79.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.07, 39.69, -66.01)
CIE-LCHlch(27.07, 77.02, 301.02°)
OKLaboklab(38.77% -0.0014 -0.1912)
OKLCHoklch(38.77% 0.191 269.6)
XYZxyz(8.7021, 5.1202, 37.5679)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222EA8 #A89C22
analogous
#2271A8 #222EA8 #5922A8
triadic
#222EA8 #A8222E #2EA822
tetradic
#222EA8 #A82271 #A89C22 #22A859
square
#222EA8 #A82271 #A89C22 #22A859
split-complementary
#222EA8 #A85922 #71A822
monochromatic
#0D1242 #182075 #222EA8 #3240D5 #6570E0

Accessibility & contrast

On white

10.37
#222EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#222EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222EA8
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222EA8#FFFFFF#000000##FFFFFF
##222EA81.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #222ea8;
/* rgb */ color: rgb(34, 46, 168);
/* oklch */ color: oklch(38.8% 0.191 269.6);
Tailwind
colors: {
  custom: {
    50: '#7667c3',
    500: '#222ea8',
    950: '#000000',
  },
}
SCSS
$custom: #222ea8;
$custom-light: #7667c3;
$custom-dark: #000000;
JSON
{
  "hex": "#222ea8",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 234.627,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.19121,
    "h": 269.6
  },
  "luminance": 0.05121
}

Semantic roles & 50–950 ramp

primary
#222EA8
secondary
#C5BC61
accent
#DA3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #222EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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