#222F88#222F88

#222F88 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.148 H 270.4°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#222F88
RGBrgb(34, 47, 136)
HSLhsl(232, 60%, 33%)
HSVhsv(232, 75%, 53%)
CMYKcmyk(75%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.16, 27.28, -51.18)
CIE-LCHlch(24.16, 57.99, 298.06°)
OKLaboklab(35.71% 0.0011 -0.1479)
OKLCHoklch(35.71% 0.148 270.4)
XYZxyz(6.1186, 4.1501, 23.7664)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F88 #887B22
analogous
#226288 #222F88 #482288
triadic
#222F88 #88222F #2F8822
tetradic
#222F88 #882262 #887B22 #228848
square
#222F88 #882262 #887B22 #228848
split-complementary
#222F88 #884822 #628822
monochromatic
#0A0D26 #161E57 #222F88 #2E40B9 #5162D3

Accessibility & contrast

On white

11.47
#222F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#222F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F88
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F88#FFFFFF#000000##FFFFFF
##222F881.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222f88;
/* rgb */ color: rgb(34, 47, 136);
/* oklch */ color: oklch(35.7% 0.148 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d67ac',
    500: '#222f88',
    950: '#000000',
  },
}
SCSS
$custom: #222f88;
$custom-light: #6d67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#222f88",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 232.353,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.14789,
    "h": 270.4
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#222F88
secondary
#B7AA4F
accent
#CF45E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #222F88

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

Preview Lab → · Contrast checker → · Palette generator →

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