#222EA5#222EA5

#222EA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.187 H 269.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#222EA5
RGBrgb(34, 46, 165)
HSLhsl(235, 66%, 39%)
HSVhsv(235, 79%, 65%)
CMYKcmyk(79.4%, 72.1%, 0%, 35.3%)
CIE-LABlab(26.76, 38.62, -64.71)
CIE-LCHlch(26.76, 75.36, 300.83°)
OKLaboklab(38.46% -0.001 -0.1874)
OKLCHoklch(38.46% 0.187 269.7)
XYZxyz(8.4259, 5.0097, 36.1129)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222EA5 #A59922
analogous
#2270A5 #222EA5 #5822A5
triadic
#222EA5 #A5222E #2EA522
tetradic
#222EA5 #A52270 #A59922 #22A558
square
#222EA5 #A52270 #A59922 #22A558
split-complementary
#222EA5 #A55822 #70A522
monochromatic
#0D1240 #182072 #222EA5 #303FD4 #636EDF

Accessibility & contrast

On white

10.49
#222EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#222EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222EA5
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222EA5#FFFFFF#000000##FFFFFF
##222EA51.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #222ea5;
/* rgb */ color: rgb(34, 46, 165);
/* oklch */ color: oklch(38.5% 0.187 269.7);
Tailwind
colors: {
  custom: {
    50: '#7567c1',
    500: '#222ea5',
    950: '#000000',
  },
}
SCSS
$custom: #222ea5;
$custom-light: #7567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#222ea5",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 234.504,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.18743,
    "h": 269.7
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#222EA5
secondary
#C4BB5F
accent
#D93FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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