#222F8B#222F8B

#222F8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.152 H 270.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#222F8B
RGBrgb(34, 47, 139)
HSLhsl(233, 61%, 34%)
HSVhsv(233, 76%, 55%)
CMYKcmyk(75.5%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.44, 28.42, -52.59)
CIE-LCHlch(24.44, 59.78, 298.39°)
OKLaboklab(35.99% 0.0009 -0.152)
OKLCHoklch(35.99% 0.152 270.3)
XYZxyz(6.3348, 4.2365, 24.9050)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F8B #8B7E22
analogous
#22648B #222F8B #4A228B
triadic
#222F8B #8B222F #2F8B22
tetradic
#222F8B #8B2264 #8B7E22 #228B4A
square
#222F8B #8B2264 #8B7E22 #228B4A
split-complementary
#222F8B #8B4A22 #648B22
monochromatic
#0A0E29 #161E5A #222F8B #2E40BC #5363D5

Accessibility & contrast

On white

11.37
#222F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#222F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F8B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F8B#FFFFFF#000000##FFFFFF
##222F8B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #222f8b;
/* rgb */ color: rgb(34, 47, 139);
/* oklch */ color: oklch(36.0% 0.152 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e67ae',
    500: '#222f8b',
    950: '#000000',
  },
}
SCSS
$custom: #222f8b;
$custom-light: #6e67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#222f8b",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 232.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.15204,
    "h": 270.3
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

primary
#222F8B
secondary
#B8AC50
accent
#D044E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #222F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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