#222D8B#222D8B

#222D8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.154 H 270.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#222D8B
RGBrgb(34, 45, 139)
HSLhsl(234, 61%, 34%)
HSVhsv(234, 76%, 55%)
CMYKcmyk(75.5%, 67.6%, 0%, 45.5%)
CIE-LABlab(23.94, 29.75, -53.42)
CIE-LCHlch(23.94, 61.14, 299.12°)
OKLaboklab(35.63% 0.0022 -0.1545)
OKLCHoklch(35.63% 0.154 270.8)
XYZxyz(6.2567, 4.0803, 24.8789)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D8B #8B8022
analogous
#22628B #222D8B #4C228B
triadic
#222D8B #8B222D #2D8B22
tetradic
#222D8B #8B2262 #8B8022 #228B4C
square
#222D8B #8B2262 #8B8022 #228B4C
split-complementary
#222D8B #8B4C22 #628B22
monochromatic
#0A0D29 #161D5A #222D8B #2E3DBC #5360D5

Accessibility & contrast

On white

11.56
#222D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#222D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D8B
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D8B#FFFFFF#000000##FFFFFF
##222D8B1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222d8b;
/* rgb */ color: rgb(34, 45, 139);
/* oklch */ color: oklch(35.6% 0.154 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e66ae',
    500: '#222d8b',
    950: '#000000',
  },
}
SCSS
$custom: #222d8b;
$custom-light: #6e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#222d8b",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 233.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35625,
    "c": 0.15448,
    "h": 270.8
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#222D8B
secondary
#B8AE50
accent
#D344E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #222D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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