#222A7E#222A7E

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

Color values

HEX#222A7E
RGBrgb(34, 42, 126)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(73%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.95, 26.86, -48.51)
CIE-LCHlch(21.95, 55.45, 298.98°)
OKLaboklab(33.8% 0.0053 -0.1401)
OKLCHoklch(33.8% 0.14 272.2)
XYZxyz(5.2523, 3.5019, 20.1337)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A7E #7E7622
analogous
#22587E #222A7E #48227E
triadic
#222A7E #7E222A #2A7E22
tetradic
#222A7E #7E2258 #7E7622 #227E48
square
#222A7E #7E2258 #7E7622 #227E48
split-complementary
#222A7E #7E4822 #587E22
monochromatic
#080A1E #151A4E #222A7E #2F3AAE #4C57CF

Accessibility & contrast

On white

12.35
#222A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222A7E
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A7E#FFFFFF#000000##FFFFFF
##222A7E1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222a7e;
/* rgb */ color: rgb(34, 42, 126);
/* oklch */ color: oklch(33.8% 0.140 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b63a4',
    500: '#222a7e',
    950: '#000000',
  },
}
SCSS
$custom: #222a7e;
$custom-light: #6b63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#222a7e",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 234.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33799,
    "c": 0.14022,
    "h": 272.2
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#222A7E
secondary
#B1A84B
accent
#D347E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #222A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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