#162C89#162C89

#162C89 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.156 H 266.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#162C89
RGBrgb(22, 44, 137)
HSLhsl(229, 72%, 31%)
HSVhsv(229, 84%, 54%)
CMYKcmyk(83.9%, 67.9%, 0%, 46.3%)
CIE-LABlab(22.92, 28.46, -53.86)
CIE-LCHlch(22.92, 60.91, 297.86°)
OKLaboklab(34.67% -0.0085 -0.156)
OKLCHoklch(34.67% 0.156 266.9)
XYZxyz(5.7453, 3.7774, 24.0884)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C89 #897316
analogous
#166589 #162C89 #391689
triadic
#162C89 #89162C #2C8916
tetradic
#162C89 #891665 #897316 #168939
square
#162C89 #891665 #897316 #168939
split-complementary
#162C89 #893916 #658916
monochromatic
#050A20 #0E1B54 #162C89 #1E3DBE #3A5ADF

Accessibility & contrast

On white

11.96
#162C89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#162C89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C89
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C89#FFFFFF#000000##FFFFFF
##162C891.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162c89;
/* rgb */ color: rgb(22, 44, 137);
/* oklch */ color: oklch(34.7% 0.156 266.9);
Tailwind
colors: {
  custom: {
    50: '#6a65ac',
    500: '#162c89',
    950: '#000000',
  },
}
SCSS
$custom: #162c89;
$custom-light: #6a65ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162c89",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 137
  },
  "hsl": {
    "h": 228.522,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34669,
    "c": 0.15623,
    "h": 266.9
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#162C89
secondary
#BDA53E
accent
#CC39EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #162C89

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

Preview Lab → · Contrast checker → · Palette generator →

#162C89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva