#222877#222877

#222877 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.133 H 273.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#222877
RGBrgb(34, 40, 119)
HSLhsl(236, 56%, 30%)
HSVhsv(236, 71%, 47%)
CMYKcmyk(71.4%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.79, 25.57, -45.96)
CIE-LCHlch(20.79, 52.60, 299.09°)
OKLaboklab(32.75% 0.0073 -0.1327)
OKLCHoklch(32.75% 0.133 273.1)
XYZxyz(4.7471, 3.1891, 17.8146)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222877 #777122
analogous
#225277 #222877 #472277
triadic
#222877 #772228 #287722
tetradic
#222877 #772252 #777122 #227747
square
#222877 #772252 #777122 #227747
split-complementary
#222877 #774722 #527722
monochromatic
#070818 #141847 #222877 #3038A7 #4952CB

Accessibility & contrast

On white

12.82
#222877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#222877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222877
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222877#FFFFFF#000000##FFFFFF
##2228771.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222877;
/* rgb */ color: rgb(34, 40, 119);
/* oklch */ color: oklch(32.7% 0.133 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a629f',
    500: '#222877',
    950: '#000000',
  },
}
SCSS
$custom: #222877;
$custom-light: #6a629f;
$custom-dark: #000000;
JSON
{
  "hex": "#222877",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 235.765,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32745,
    "c": 0.13287,
    "h": 273.1
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#222877
secondary
#AAA34B
accent
#D449DF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #222877

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

Preview Lab → · Contrast checker → · Palette generator →

#222877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva