#222A8D#222A8D

#222A8D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.161 H 271.4°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#222A8D
RGBrgb(34, 42, 141)
HSLhsl(236, 61%, 34%)
HSVhsv(236, 76%, 55%)
CMYKcmyk(75.9%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.40, 32.46, -55.54)
CIE-LCHlch(23.40, 64.33, 300.30°)
OKLaboklab(35.3% 0.0039 -0.1607)
OKLCHoklch(35.3% 0.161 271.4)
XYZxyz(6.2937, 3.9184, 25.6188)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A8D #8D8522
analogous
#22608D #222A8D #50228D
triadic
#222A8D #8D222A #2A8D22
tetradic
#222A8D #8D2260 #8D8522 #228D50
square
#222A8D #8D2260 #8D8522 #228D50
split-complementary
#222A8D #8D5022 #608D22
monochromatic
#0A0D2A #161B5C #222A8D #2E39BE #545DD6

Accessibility & contrast

On white

11.77
#222A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#222A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A8D
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A8D#FFFFFF#000000##FFFFFF
##222A8D1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222a8d;
/* rgb */ color: rgb(34, 42, 141);
/* oklch */ color: oklch(35.3% 0.161 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f64af',
    500: '#222a8d',
    950: '#000000',
  },
}
SCSS
$custom: #222a8d;
$custom-light: #6f64af;
$custom-dark: #000000;
JSON
{
  "hex": "#222a8d",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 235.514,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35296,
    "c": 0.16073,
    "h": 271.4
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#222A8D
secondary
#B9B251
accent
#D844E4
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080511
muted
#7B7A80

Preview Lab

Preview with #222A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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