#222F87#222F87

#222F87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.146 H 270.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#222F87
RGBrgb(34, 47, 135)
HSLhsl(232, 60%, 33%)
HSVhsv(232, 75%, 53%)
CMYKcmyk(74.8%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.07, 26.90, -50.70)
CIE-LCHlch(24.07, 57.39, 297.95°)
OKLaboklab(35.61% 0.0011 -0.1465)
OKLCHoklch(35.61% 0.147 270.4)
XYZxyz(6.0479, 4.1218, 23.3938)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F87 #877A22
analogous
#226187 #222F87 #472287
triadic
#222F87 #87222F #2F8722
tetradic
#222F87 #872261 #877A22 #228747
square
#222F87 #872261 #877A22 #228747
split-complementary
#222F87 #874722 #618722
monochromatic
#090D25 #161E56 #222F87 #2E40B8 #5061D3

Accessibility & contrast

On white

11.51
#222F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#222F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F87
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F87#FFFFFF#000000##FFFFFF
##222F871.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222f87;
/* rgb */ color: rgb(34, 47, 135);
/* oklch */ color: oklch(35.6% 0.146 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d67ab',
    500: '#222f87',
    950: '#000000',
  },
}
SCSS
$custom: #222f87;
$custom-light: #6d67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#222f87",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 232.277,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35609,
    "c": 0.1465,
    "h": 270.4
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222F87

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

Preview Lab → · Contrast checker → · Palette generator →

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