#222A8E#222A8E

#222A8E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.162 H 271.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#222A8E
RGBrgb(34, 42, 142)
HSLhsl(236, 61%, 35%)
HSVhsv(236, 76%, 56%)
CMYKcmyk(76.1%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.50, 32.82, -56.00)
CIE-LCHlch(23.50, 64.91, 300.38°)
OKLaboklab(35.4% 0.0038 -0.162)
OKLCHoklch(35.4% 0.162 271.3)
XYZxyz(6.3685, 3.9483, 26.0124)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A8E #8E8622
analogous
#22608E #222A8E #50228E
triadic
#222A8E #8E222A #2A8E22
tetradic
#222A8E #8E2260 #8E8622 #228E50
square
#222A8E #8E2260 #8E8622 #228E50
split-complementary
#222A8E #8E5022 #608E22
monochromatic
#0A0D2B #161B5D #222A8E #2E39BF #545ED6

Accessibility & contrast

On white

11.73
#222A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A8E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A8E#FFFFFF#000000##FFFFFF
##222A8E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222a8e;
/* rgb */ color: rgb(34, 42, 142);
/* oklch */ color: oklch(35.4% 0.162 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f64b0',
    500: '#222a8e',
    950: '#000000',
  },
}
SCSS
$custom: #222a8e;
$custom-light: #6f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#222a8e",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 235.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35398,
    "c": 0.16205,
    "h": 271.3
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#222A8E
secondary
#BAB252
accent
#D943E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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