#222D79#222D79

#222D79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.129 H 271.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#222D79
RGBrgb(34, 45, 121)
HSLhsl(232, 56%, 30%)
HSVhsv(232, 72%, 47%)
CMYKcmyk(71.9%, 62.8%, 0%, 52.5%)
CIE-LABlab(22.29, 22.90, -44.78)
CIE-LCHlch(22.29, 50.30, 297.08°)
OKLaboklab(33.91% 0.0031 -0.1291)
OKLCHoklch(33.91% 0.129 271.4)
XYZxyz(5.0481, 3.5968, 18.5137)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D79 #796E22
analogous
#225879 #222D79 #422279
triadic
#222D79 #79222D #2D7922
tetradic
#222D79 #792258 #796E22 #227942
square
#222D79 #792258 #796E22 #227942
split-complementary
#222D79 #794222 #587922
monochromatic
#070919 #151B49 #222D79 #2F3FA9 #495ACC

Accessibility & contrast

On white

12.21
#222D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#222D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D79
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D79#FFFFFF#000000##FFFFFF
##222D791.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222d79;
/* rgb */ color: rgb(34, 45, 121);
/* oklch */ color: oklch(33.9% 0.129 271.4);
Tailwind
colors: {
  custom: {
    50: '#6a65a0',
    500: '#222d79',
    950: '#000000',
  },
}
SCSS
$custom: #222d79;
$custom-light: #6a65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222d79",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 232.414,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33909,
    "c": 0.12919,
    "h": 271.4
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#222D79
secondary
#ACA04B
accent
#CC48DF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #222D79

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

Preview Lab → · Contrast checker → · Palette generator →

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