#222D7F#222D7F

#222D7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.138 H 271.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#222D7F
RGBrgb(34, 45, 127)
HSLhsl(233, 58%, 32%)
HSVhsv(233, 73%, 50%)
CMYKcmyk(73.2%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.82, 25.20, -47.72)
CIE-LCHlch(22.82, 53.96, 297.84°)
OKLaboklab(34.47% 0.003 -0.1378)
OKLCHoklch(34.47% 0.138 271.2)
XYZxyz(5.4275, 3.7486, 20.5121)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D7F #7F7422
analogous
#225C7F #222D7F #46227F
triadic
#222D7F #7F222D #2D7F22
tetradic
#222D7F #7F225C #7F7422 #227F46
square
#222D7F #7F225C #7F7422 #227F46
split-complementary
#222D7F #7F4622 #5C7F22
monochromatic
#080B1E #151C4F #222D7F #2F3EAF #4C5CCF

Accessibility & contrast

On white

12.00
#222D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#222D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D7F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D7F#FFFFFF#000000##FFFFFF
##222D7F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222d7f;
/* rgb */ color: rgb(34, 45, 127);
/* oklch */ color: oklch(34.5% 0.138 271.2);
Tailwind
colors: {
  custom: {
    50: '#6b65a5',
    500: '#222d7f',
    950: '#000000',
  },
}
SCSS
$custom: #222d7f;
$custom-light: #6b65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#222d7f",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 232.903,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34467,
    "c": 0.1378,
    "h": 271.2
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#222D7F
secondary
#B2A54B
accent
#CF47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #222D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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