#222D7B#222D7B

#222D7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.132 H 271.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#222D7B
RGBrgb(34, 45, 123)
HSLhsl(233, 57%, 31%)
HSVhsv(233, 72%, 48%)
CMYKcmyk(72.4%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.47, 23.67, -45.77)
CIE-LCHlch(22.47, 51.52, 297.35°)
OKLaboklab(34.09% 0.0031 -0.132)
OKLCHoklch(34.09% 0.132 271.3)
XYZxyz(5.1720, 3.6464, 19.1663)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D7B #7B7022
analogous
#22597B #222D7B #43227B
triadic
#222D7B #7B222D #2D7B22
tetradic
#222D7B #7B2259 #7B7022 #227B43
square
#222D7B #7B2259 #7B7022 #227B43
split-complementary
#222D7B #7B4322 #597B22
monochromatic
#070A1B #151B4B #222D7B #2F3FAB #4A5ACD

Accessibility & contrast

On white

12.14
#222D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#222D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D7B
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D7B#FFFFFF#000000##FFFFFF
##222D7B1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.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: #222d7b;
/* rgb */ color: rgb(34, 45, 123);
/* oklch */ color: oklch(34.1% 0.132 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a65a2',
    500: '#222d7b',
    950: '#000000',
  },
}
SCSS
$custom: #222d7b;
$custom-light: #6a65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#222d7b",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 232.584,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.13208,
    "h": 271.3
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#222D7B
secondary
#AEA24B
accent
#CD48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #222D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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