#222BA5#222BA5

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

Color values

HEX#222BA5
RGBrgb(34, 43, 165)
HSLhsl(236, 66%, 39%)
HSVhsv(236, 79%, 65%)
CMYKcmyk(79.4%, 73.9%, 0%, 35.3%)
CIE-LABlab(26.11, 40.44, -65.79)
CIE-LCHlch(26.11, 77.23, 301.58°)
OKLaboklab(37.99% 0.0003 -0.1905)
OKLCHoklch(37.99% 0.191 270.1)
XYZxyz(8.3128, 4.7835, 36.0752)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222BA5 #A59C22
analogous
#226DA5 #222BA5 #5B22A5
triadic
#222BA5 #A5222B #2BA522
tetradic
#222BA5 #A5226D #A59C22 #22A55B
square
#222BA5 #A5226D #A59C22 #22A55B
split-complementary
#222BA5 #A55B22 #6DA522
monochromatic
#0D1140 #181E72 #222BA5 #303BD4 #636BDF

Accessibility & contrast

On white

10.73
#222BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222BA5
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222BA5#FFFFFF#000000##FFFFFF
##222BA51.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222ba5;
/* rgb */ color: rgb(34, 43, 165);
/* oklch */ color: oklch(38.0% 0.191 270.1);
Tailwind
colors: {
  custom: {
    50: '#7565c1',
    500: '#222ba5',
    950: '#000000',
  },
}
SCSS
$custom: #222ba5;
$custom-light: #7565c1;
$custom-dark: #000000;
JSON
{
  "hex": "#222ba5",
  "rgb": {
    "r": 34,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 235.878,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37987,
    "c": 0.19055,
    "h": 270.1
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#222BA5
secondary
#C4BD5F
accent
#DD3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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