#222D7C#222D7C

#222D7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.134 H 271.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#222D7C
RGBrgb(34, 45, 124)
HSLhsl(233, 57%, 31%)
HSVhsv(233, 73%, 49%)
CMYKcmyk(72.6%, 63.7%, 0%, 51.4%)
CIE-LABlab(22.55, 24.05, -46.26)
CIE-LCHlch(22.55, 52.14, 297.47°)
OKLaboklab(34.19% 0.0031 -0.1335)
OKLCHoklch(34.19% 0.134 271.3)
XYZxyz(5.2349, 3.6716, 19.4977)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D7C #7C7122
analogous
#225A7C #222D7C #44227C
triadic
#222D7C #7C222D #2D7C22
tetradic
#222D7C #7C225A #7C7122 #227C44
square
#222D7C #7C225A #7C7122 #227C44
split-complementary
#222D7C #7C4422 #5A7C22
monochromatic
#080A1C #151C4C #222D7C #2F3EAC #4B5BCE

Accessibility & contrast

On white

12.11
#222D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222D7C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D7C#FFFFFF#000000##FFFFFF
##222D7C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222d7c;
/* rgb */ color: rgb(34, 45, 124);
/* oklch */ color: oklch(34.2% 0.134 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a65a3',
    500: '#222d7c',
    950: '#000000',
  },
}
SCSS
$custom: #222d7c;
$custom-light: #6a65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222d7c",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 232.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.13351,
    "h": 271.3
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#222D7C
secondary
#AFA34B
accent
#CE48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #222D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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