#222EA7#222EA7

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

Color values

HEX#222EA7
RGBrgb(34, 46, 167)
HSLhsl(235, 66%, 39%)
HSVhsv(235, 80%, 65%)
CMYKcmyk(79.6%, 72.5%, 0%, 34.5%)
CIE-LABlab(26.97, 39.33, -65.58)
CIE-LCHlch(26.97, 76.47, 300.96°)
OKLaboklab(38.67% -0.0013 -0.1899)
OKLCHoklch(38.67% 0.19 269.6)
XYZxyz(8.6093, 5.0831, 37.0791)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222EA7 #A79B22
analogous
#2271A7 #222EA7 #5822A7
triadic
#222EA7 #A7222E #2EA722
tetradic
#222EA7 #A72271 #A79B22 #22A758
square
#222EA7 #A72271 #A79B22 #22A758
split-complementary
#222EA7 #A75822 #71A722
monochromatic
#0D1241 #182074 #222EA7 #3140D5 #646FDF

Accessibility & contrast

On white

10.41
#222EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222EA7
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222EA7#FFFFFF#000000##FFFFFF
##222EA71.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #222ea7;
/* rgb */ color: rgb(34, 46, 167);
/* oklch */ color: oklch(38.7% 0.190 269.6);
Tailwind
colors: {
  custom: {
    50: '#7567c2',
    500: '#222ea7',
    950: '#000000',
  },
}
SCSS
$custom: #222ea7;
$custom-light: #7567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#222ea7",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 234.586,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38667,
    "c": 0.18995,
    "h": 269.6
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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