#222BA1#222BA1

#222BA1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.186 H 270.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#222BA1
RGBrgb(34, 43, 161)
HSLhsl(236, 65%, 38%)
HSVhsv(236, 79%, 63%)
CMYKcmyk(78.9%, 73.3%, 0%, 36.9%)
CIE-LABlab(25.68, 39.03, -64.07)
CIE-LCHlch(25.68, 75.02, 301.35°)
OKLaboklab(37.56% 0.0008 -0.1855)
OKLCHoklch(37.56% 0.186 270.3)
XYZxyz(7.9544, 4.6402, 34.1877)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222BA1 #A19822
analogous
#226AA1 #222BA1 #5822A1
triadic
#222BA1 #A1222B #2BA122
tetradic
#222BA1 #A1226A #A19822 #22A158
square
#222BA1 #A1226A #A19822 #22A158
split-complementary
#222BA1 #A15822 #6AA122
monochromatic
#0D103C #171E6E #222BA1 #2D39D3 #6069DD

Accessibility & contrast

On white

10.89
#222BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#222BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222BA1
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222BA1#FFFFFF#000000##FFFFFF
##222BA11.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #222ba1;
/* rgb */ color: rgb(34, 43, 161);
/* oklch */ color: oklch(37.6% 0.186 270.3);
Tailwind
colors: {
  custom: {
    50: '#7465be',
    500: '#222ba1',
    950: '#000000',
  },
}
SCSS
$custom: #222ba1;
$custom-light: #7465be;
$custom-dark: #000000;
JSON
{
  "hex": "#222ba1",
  "rgb": {
    "r": 34,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 235.748,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37557,
    "c": 0.18554,
    "h": 270.3
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#222BA1
secondary
#C2BB5D
accent
#DC40E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #222BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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