#222D7D#222D7D

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

Color values

HEX#222D7D
RGBrgb(34, 45, 125)
HSLhsl(233, 57%, 31%)
HSVhsv(233, 73%, 49%)
CMYKcmyk(72.8%, 64%, 0%, 51%)
CIE-LABlab(22.64, 24.44, -46.74)
CIE-LCHlch(22.64, 52.75, 297.60°)
OKLaboklab(34.28% 0.003 -0.1349)
OKLCHoklch(34.28% 0.135 271.3)
XYZxyz(5.2985, 3.6970, 19.8324)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D7D #7D7222
analogous
#225A7D #222D7D #44227D
triadic
#222D7D #7D222D #2D7D22
tetradic
#222D7D #7D225A #7D7222 #227D44
square
#222D7D #7D225A #7D7222 #227D44
split-complementary
#222D7D #7D4422 #5A7D22
monochromatic
#080A1D #151C4D #222D7D #2F3EAD #4B5BCE

Accessibility & contrast

On white

12.07
#222D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222D7D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D7D#FFFFFF#000000##FFFFFF
##222D7D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222d7d;
/* rgb */ color: rgb(34, 45, 125);
/* oklch */ color: oklch(34.3% 0.135 271.3);
Tailwind
colors: {
  custom: {
    50: '#6b65a3',
    500: '#222d7d',
    950: '#000000',
  },
}
SCSS
$custom: #222d7d;
$custom-light: #6b65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222d7d",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 232.747,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34279,
    "c": 0.13495,
    "h": 271.3
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#222D7D
secondary
#B0A34B
accent
#CE47E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #222D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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