#222A79#222A79

#222A79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.133 H 272.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#222A79
RGBrgb(34, 42, 121)
HSLhsl(234, 56%, 30%)
HSVhsv(234, 72%, 47%)
CMYKcmyk(71.9%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.49, 24.97, -46.09)
CIE-LCHlch(21.49, 52.42, 298.45°)
OKLaboklab(33.32% 0.0056 -0.133)
OKLCHoklch(33.32% 0.133 272.4)
XYZxyz(4.9377, 3.3760, 18.4769)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A79 #797122
analogous
#225579 #222A79 #452279
triadic
#222A79 #79222A #2A7922
tetradic
#222A79 #792255 #797122 #227945
square
#222A79 #792255 #797122 #227945
split-complementary
#222A79 #794522 #557922
monochromatic
#070919 #151949 #222A79 #2F3BA9 #4955CC

Accessibility & contrast

On white

12.54
#222A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#222A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A79
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A79#FFFFFF#000000##FFFFFF
##222A791.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222a79;
/* rgb */ color: rgb(34, 42, 121);
/* oklch */ color: oklch(33.3% 0.133 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a63a0',
    500: '#222a79',
    950: '#000000',
  },
}
SCSS
$custom: #222a79;
$custom-light: #6a63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222a79",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 234.483,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33319,
    "c": 0.13314,
    "h": 272.4
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#222A79
secondary
#ACA34B
accent
#D248DF
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #222A79

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

Preview Lab → · Contrast checker → · Palette generator →

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