#222A8F#222A8F

#222A8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 271.3°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#222A8F
RGBrgb(34, 42, 143)
HSLhsl(236, 62%, 35%)
HSVhsv(236, 76%, 56%)
CMYKcmyk(76.2%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.60, 33.19, -56.45)
CIE-LCHlch(23.60, 65.48, 300.45°)
OKLaboklab(35.5% 0.0037 -0.1633)
OKLCHoklch(35.5% 0.163 271.3)
XYZxyz(6.4439, 3.9785, 26.4096)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A8F #8F8722
analogous
#22618F #222A8F #50228F
triadic
#222A8F #8F222A #2A8F22
tetradic
#222A8F #8F2261 #8F8722 #228F50
square
#222A8F #8F2261 #8F8722 #228F50
split-complementary
#222A8F #8F5022 #618F22
monochromatic
#0A0D2C #161B5E #222A8F #2E39C0 #555ED7

Accessibility & contrast

On white

11.69
#222A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#222A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A8F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A8F#FFFFFF#000000##FFFFFF
##222A8F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222a8f;
/* rgb */ color: rgb(34, 42, 143);
/* oklch */ color: oklch(35.5% 0.163 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f64b1',
    500: '#222a8f',
    950: '#000000',
  },
}
SCSS
$custom: #222a8f;
$custom-light: #6f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#222a8f",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 235.596,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35501,
    "c": 0.16338,
    "h": 271.3
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#222A8F
secondary
#BAB352
accent
#D943E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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