#222B7F#222B7F

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

Color values

HEX#222B7F
RGBrgb(34, 43, 127)
HSLhsl(234, 58%, 32%)
HSVhsv(234, 73%, 50%)
CMYKcmyk(73.2%, 66.1%, 0%, 50.2%)
CIE-LABlab(22.30, 26.57, -48.57)
CIE-LCHlch(22.30, 55.36, 298.68°)
OKLaboklab(34.08% 0.0045 -0.1403)
OKLCHoklch(34.08% 0.14 271.8)
XYZxyz(5.3530, 3.5996, 20.4872)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222B7F #7F7622
analogous
#225A7F #222B7F #48227F
triadic
#222B7F #7F222B #2B7F22
tetradic
#222B7F #7F225A #7F7622 #227F48
square
#222B7F #7F225A #7F7622 #227F48
split-complementary
#222B7F #7F4822 #5A7F22
monochromatic
#080A1E #151B4F #222B7F #2F3BAF #4C59CF

Accessibility & contrast

On white

12.21
#222B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#222B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222B7F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222B7F#FFFFFF#000000##FFFFFF
##222B7F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222b7f;
/* rgb */ color: rgb(34, 43, 127);
/* oklch */ color: oklch(34.1% 0.140 271.8);
Tailwind
colors: {
  custom: {
    50: '#6b64a5',
    500: '#222b7f',
    950: '#000000',
  },
}
SCSS
$custom: #222b7f;
$custom-light: #6b64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#222b7f",
  "rgb": {
    "r": 34,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 234.194,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34084,
    "c": 0.14035,
    "h": 271.8
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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