#222477#222477

#222477 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.138 H 274.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#222477
RGBrgb(34, 36, 119)
HSLhsl(239, 56%, 30%)
HSVhsv(239, 71%, 47%)
CMYKcmyk(71.4%, 69.7%, 0%, 53.3%)
CIE-LABlab(19.77, 28.26, -47.62)
CIE-LCHlch(19.77, 55.38, 300.69°)
OKLaboklab(32.01% 0.0104 -0.1375)
OKLCHoklch(32.01% 0.138 274.3)
XYZxyz(4.6192, 2.9333, 17.7719)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222477 #777522
analogous
#224F77 #222477 #4A2277
triadic
#222477 #772224 #247722
tetradic
#222477 #77224F #777522 #22774A
square
#222477 #77224F #777522 #22774A
split-complementary
#222477 #774A22 #4F7722
monochromatic
#070718 #141647 #222477 #3032A7 #494CCB

Accessibility & contrast

On white

13.23
#222477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#222477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222477
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222477#FFFFFF#000000##FFFFFF
##2224771.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #222477;
/* rgb */ color: rgb(34, 36, 119);
/* oklch */ color: oklch(32.0% 0.138 274.3);
Tailwind
colors: {
  custom: {
    50: '#6a5f9f',
    500: '#222477',
    950: '#000000',
  },
}
SCSS
$custom: #222477;
$custom-light: #6a5f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#222477",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 119
  },
  "hsl": {
    "h": 238.588,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32008,
    "c": 0.13793,
    "h": 274.3
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#222477
secondary
#AAA84B
accent
#DB49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #222477

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

Preview Lab → · Contrast checker → · Palette generator →

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