#222B7E#222B7E

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

Color values

HEX#222B7E
RGBrgb(34, 43, 126)
HSLhsl(234, 58%, 31%)
HSVhsv(234, 73%, 49%)
CMYKcmyk(73%, 65.9%, 0%, 50.6%)
CIE-LABlab(22.21, 26.19, -48.09)
CIE-LCHlch(22.21, 54.76, 298.57°)
OKLaboklab(33.99% 0.0045 -0.1389)
OKLCHoklch(33.99% 0.139 271.9)
XYZxyz(5.2882, 3.5737, 20.1457)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222B7E #7E7522
analogous
#22597E #222B7E #47227E
triadic
#222B7E #7E222B #2B7E22
tetradic
#222B7E #7E2259 #7E7522 #227E47
square
#222B7E #7E2259 #7E7522 #227E47
split-complementary
#222B7E #7E4722 #597E22
monochromatic
#080A1E #151B4E #222B7E #2F3BAE #4C59CF

Accessibility & contrast

On white

12.25
#222B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222B7E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222B7E#FFFFFF#000000##FFFFFF
##222B7E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222b7e;
/* rgb */ color: rgb(34, 43, 126);
/* oklch */ color: oklch(34.0% 0.139 271.9);
Tailwind
colors: {
  custom: {
    50: '#6b64a4',
    500: '#222b7e',
    950: '#000000',
  },
}
SCSS
$custom: #222b7e;
$custom-light: #6b64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#222b7e",
  "rgb": {
    "r": 34,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 234.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33988,
    "c": 0.13894,
    "h": 271.9
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#222B7E
secondary
#B1A74B
accent
#D247E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #222B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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