#162A89#162A89

#162A89 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.159 H 267.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#162A89
RGBrgb(22, 42, 137)
HSLhsl(230, 72%, 31%)
HSVhsv(230, 84%, 54%)
CMYKcmyk(83.9%, 69.3%, 0%, 46.3%)
CIE-LABlab(22.42, 29.81, -54.69)
CIE-LCHlch(22.42, 62.29, 298.60°)
OKLaboklab(34.3% -0.0076 -0.1584)
OKLCHoklch(34.3% 0.159 267.3)
XYZxyz(5.6726, 3.6320, 24.0641)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A89 #897516
analogous
#166389 #162A89 #3B1689
triadic
#162A89 #89162A #2A8916
tetradic
#162A89 #891663 #897516 #16893B
square
#162A89 #891663 #897516 #16893B
split-complementary
#162A89 #893B16 #638916
monochromatic
#050A20 #0E1A54 #162A89 #1E3ABE #3A57DF

Accessibility & contrast

On white

12.16
#162A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#162A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A89
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A89#FFFFFF#000000##FFFFFF
##162A891.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162a89;
/* rgb */ color: rgb(22, 42, 137);
/* oklch */ color: oklch(34.3% 0.159 267.3);
Tailwind
colors: {
  custom: {
    50: '#6a63ac',
    500: '#162a89',
    950: '#000000',
  },
}
SCSS
$custom: #162a89;
$custom-light: #6a63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#162a89",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 229.565,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34299,
    "c": 0.15862,
    "h": 267.3
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#162A89
secondary
#BDA73E
accent
#CF39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162A89

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

Preview Lab → · Contrast checker → · Palette generator →

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