#222A7D#222A7D

#222A7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.139 H 272.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#222A7D
RGBrgb(34, 42, 125)
HSLhsl(235, 57%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(72.8%, 66.4%, 0%, 51%)
CIE-LABlab(21.86, 26.49, -48.03)
CIE-LCHlch(21.86, 54.85, 298.88°)
OKLaboklab(33.7% 0.0054 -0.1387)
OKLCHoklch(33.7% 0.139 272.2)
XYZxyz(5.1881, 3.4762, 19.7956)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A7D #7D7522
analogous
#22577D #222A7D #47227D
triadic
#222A7D #7D222A #2A7D22
tetradic
#222A7D #7D2257 #7D7522 #227D47
square
#222A7D #7D2257 #7D7522 #227D47
split-complementary
#222A7D #7D4722 #577D22
monochromatic
#080A1D #151A4D #222A7D #2F3AAD #4B57CE

Accessibility & contrast

On white

12.39
#222A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A7D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A7D#FFFFFF#000000##FFFFFF
##222A7D1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222a7d;
/* rgb */ color: rgb(34, 42, 125);
/* oklch */ color: oklch(33.7% 0.139 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b63a3',
    500: '#222a7d',
    950: '#000000',
  },
}
SCSS
$custom: #222a7d;
$custom-light: #6b63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222a7d",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 234.725,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33702,
    "c": 0.13881,
    "h": 272.2
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#222A7D
secondary
#B0A74B
accent
#D347E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #222A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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