#222A8B#222A8B

#222A8B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.158 H 271.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#222A8B
RGBrgb(34, 42, 139)
HSLhsl(235, 61%, 34%)
HSVhsv(235, 76%, 55%)
CMYKcmyk(75.5%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.20, 31.72, -54.62)
CIE-LCHlch(23.20, 63.16, 300.14°)
OKLaboklab(35.09% 0.0041 -0.158)
OKLCHoklch(35.09% 0.158 271.5)
XYZxyz(6.1463, 3.8595, 24.8421)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A8B #8B8322
analogous
#225F8B #222A8B #4F228B
triadic
#222A8B #8B222A #2A8B22
tetradic
#222A8B #8B225F #8B8322 #228B4F
square
#222A8B #8B225F #8B8322 #228B4F
split-complementary
#222A8B #8B4F22 #5F8B22
monochromatic
#0A0C29 #161B5A #222A8B #2E39BC #535CD5

Accessibility & contrast

On white

11.85
#222A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A8B
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A8B#FFFFFF#000000##FFFFFF
##222A8B1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222a8b;
/* rgb */ color: rgb(34, 42, 139);
/* oklch */ color: oklch(35.1% 0.158 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e64ae',
    500: '#222a8b',
    950: '#000000',
  },
}
SCSS
$custom: #222a8b;
$custom-light: #6e64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#222a8b",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 235.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35092,
    "c": 0.15805,
    "h": 271.5
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#222A8B
secondary
#B8B150
accent
#D844E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #222A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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