#222D7E#222D7E

#222D7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.136 H 271.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#222D7E
RGBrgb(34, 45, 126)
HSLhsl(233, 58%, 31%)
HSVhsv(233, 73%, 49%)
CMYKcmyk(73%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.73, 24.82, -47.23)
CIE-LCHlch(22.73, 53.36, 297.72°)
OKLaboklab(34.37% 0.003 -0.1363)
OKLCHoklch(34.37% 0.136 271.3)
XYZxyz(5.3627, 3.7227, 20.1705)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D7E #7E7322
analogous
#225B7E #222D7E #45227E
triadic
#222D7E #7E222D #2D7E22
tetradic
#222D7E #7E225B #7E7322 #227E45
square
#222D7E #7E225B #7E7322 #227E45
split-complementary
#222D7E #7E4522 #5B7E22
monochromatic
#080B1E #151C4E #222D7E #2F3EAE #4C5BCF

Accessibility & contrast

On white

12.04
#222D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D7E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D7E#FFFFFF#000000##FFFFFF
##222D7E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222d7e;
/* rgb */ color: rgb(34, 45, 126);
/* oklch */ color: oklch(34.4% 0.136 271.3);
Tailwind
colors: {
  custom: {
    50: '#6b65a4',
    500: '#222d7e',
    950: '#000000',
  },
}
SCSS
$custom: #222d7e;
$custom-light: #6b65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#222d7e",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 232.826,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34373,
    "c": 0.13637,
    "h": 271.3
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#222D7E
secondary
#B1A44B
accent
#CE47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #222D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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