#162B89#162B89

#162B89 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.157 H 267.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#162B89
RGBrgb(22, 43, 137)
HSLhsl(229, 72%, 31%)
HSVhsv(229, 84%, 54%)
CMYKcmyk(83.9%, 68.6%, 0%, 46.3%)
CIE-LABlab(22.67, 29.14, -54.27)
CIE-LCHlch(22.67, 61.60, 298.23°)
OKLaboklab(34.48% -0.0081 -0.1572)
OKLCHoklch(34.48% 0.157 267.1)
XYZxyz(5.7085, 3.7038, 24.0761)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B89 #897416
analogous
#166489 #162B89 #3A1689
triadic
#162B89 #89162B #2B8916
tetradic
#162B89 #891664 #897416 #16893A
square
#162B89 #891664 #897416 #16893A
split-complementary
#162B89 #893A16 #648916
monochromatic
#050A20 #0E1A54 #162B89 #1E3CBE #3A58DF

Accessibility & contrast

On white

12.06
#162B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#162B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B89
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B89#FFFFFF#000000##FFFFFF
##162B891.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162b89;
/* rgb */ color: rgb(22, 43, 137);
/* oklch */ color: oklch(34.5% 0.157 267.1);
Tailwind
colors: {
  custom: {
    50: '#6a64ac',
    500: '#162b89',
    950: '#000000',
  },
}
SCSS
$custom: #162b89;
$custom-light: #6a64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162b89",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 137
  },
  "hsl": {
    "h": 229.043,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34483,
    "c": 0.15743,
    "h": 267.1
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#162B89
secondary
#BDA63E
accent
#CE39EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #162B89

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

Preview Lab → · Contrast checker → · Palette generator →

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