#222E7B#222E7B

#222E7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.131 H 271.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#222E7B
RGBrgb(34, 46, 123)
HSLhsl(232, 57%, 31%)
HSVhsv(232, 72%, 48%)
CMYKcmyk(72.4%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.74, 22.98, -45.33)
CIE-LCHlch(22.74, 50.82, 296.88°)
OKLaboklab(34.29% 0.0023 -0.1307)
OKLCHoklch(34.29% 0.131 271)
XYZxyz(5.2106, 3.7236, 19.1792)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222E7B #7B6F22
analogous
#225A7B #222E7B #42227B
triadic
#222E7B #7B222E #2E7B22
tetradic
#222E7B #7B225A #7B6F22 #227B42
square
#222E7B #7B225A #7B6F22 #227B42
split-complementary
#222E7B #7B4222 #5A7B22
monochromatic
#070A1B #151C4B #222E7B #2F40AB #4A5CCD

Accessibility & contrast

On white

12.04
#222E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222E7B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222E7B#FFFFFF#000000##FFFFFF
##222E7B1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222e7b;
/* rgb */ color: rgb(34, 46, 123);
/* oklch */ color: oklch(34.3% 0.131 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a66a2',
    500: '#222e7b',
    950: '#000000',
  },
}
SCSS
$custom: #222e7b;
$custom-light: #6a66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#222e7b",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 231.91,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34293,
    "c": 0.13076,
    "h": 271
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#222E7B
secondary
#AEA04B
accent
#CB48E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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