#222D74#222D74

#222D74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.122 H 271.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#222D74
RGBrgb(34, 45, 116)
HSLhsl(232, 55%, 29%)
HSVhsv(232, 71%, 45%)
CMYKcmyk(70.7%, 61.2%, 0%, 54.5%)
CIE-LABlab(21.86, 20.96, -42.29)
CIE-LCHlch(21.86, 47.20, 296.37°)
OKLaboklab(33.46% 0.0031 -0.1218)
OKLCHoklch(33.46% 0.122 271.5)
XYZxyz(4.7494, 3.4774, 16.9405)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D74 #746922
analogous
#225674 #222D74 #402274
triadic
#222D74 #74222D #2D7422
tetradic
#222D74 #742256 #746922 #227440
square
#222D74 #742256 #746922 #227440
split-complementary
#222D74 #744022 #567422
monochromatic
#070918 #141B45 #222D74 #303FA3 #4759C9

Accessibility & contrast

On white

12.38
#222D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D74
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D74#FFFFFF#000000##FFFFFF
##222D741.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222d74;
/* rgb */ color: rgb(34, 45, 116);
/* oklch */ color: oklch(33.5% 0.122 271.5);
Tailwind
colors: {
  custom: {
    50: '#68659d',
    500: '#222d74',
    950: '#000000',
  },
}
SCSS
$custom: #222d74;
$custom-light: #68659d;
$custom-dark: #000000;
JSON
{
  "hex": "#222d74",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 231.951,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33457,
    "c": 0.12187,
    "h": 271.5
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#222D74
secondary
#A79B4B
accent
#CA4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #222D74

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

Preview Lab → · Contrast checker → · Palette generator →

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