#222D7A#222D7A

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

Color values

HEX#222D7A
RGBrgb(34, 45, 122)
HSLhsl(233, 56%, 31%)
HSVhsv(233, 72%, 48%)
CMYKcmyk(72.1%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.38, 23.28, -45.27)
CIE-LCHlch(22.38, 50.91, 297.22°)
OKLaboklab(34% 0.0031 -0.1306)
OKLCHoklch(34% 0.131 271.4)
XYZxyz(5.1097, 3.6215, 18.8383)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D7A #7A6F22
analogous
#22597A #222D7A #43227A
triadic
#222D7A #7A222D #2D7A22
tetradic
#222D7A #7A2259 #7A6F22 #227A43
square
#222D7A #7A2259 #7A6F22 #227A43
split-complementary
#222D7A #7A4322 #597A22
monochromatic
#070A1A #151B4A #222D7A #2F3FAA #4A5ACD

Accessibility & contrast

On white

12.18
#222D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222D7A
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D7A#FFFFFF#000000##FFFFFF
##222D7A1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222d7a;
/* rgb */ color: rgb(34, 45, 122);
/* oklch */ color: oklch(34.0% 0.131 271.4);
Tailwind
colors: {
  custom: {
    50: '#6a65a1',
    500: '#222d7a',
    950: '#000000',
  },
}
SCSS
$custom: #222d7a;
$custom-light: #6a65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#222d7a",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 232.5,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34001,
    "c": 0.13064,
    "h": 271.4
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#222D7A
secondary
#ADA14B
accent
#CD48E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #222D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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