#162B8A#162B8A

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

Color values

HEX#162B8A
RGBrgb(22, 43, 138)
HSLhsl(229, 73%, 31%)
HSVhsv(229, 84%, 54%)
CMYKcmyk(84.1%, 68.8%, 0%, 45.9%)
CIE-LABlab(22.77, 29.53, -54.73)
CIE-LCHlch(22.77, 62.19, 298.35°)
OKLaboklab(34.59% -0.0081 -0.1586)
OKLCHoklch(34.59% 0.159 267.1)
XYZxyz(5.7806, 3.7326, 24.4556)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B8A #8A7516
analogous
#16658A #162B8A #3B168A
triadic
#162B8A #8A162B #2B8A16
tetradic
#162B8A #8A1665 #8A7516 #168A3B
square
#162B8A #8A1665 #8A7516 #168A3B
split-complementary
#162B8A #8A3B16 #658A16
monochromatic
#050A20 #0E1B55 #162B8A #1E3BBF #3B59E0

Accessibility & contrast

On white

12.02
#162B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#162B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B8A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B8A#FFFFFF#000000##FFFFFF
##162B8A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162b8a;
/* rgb */ color: rgb(22, 43, 138);
/* oklch */ color: oklch(34.6% 0.159 267.1);
Tailwind
colors: {
  custom: {
    50: '#6a64ad',
    500: '#162b8a',
    950: '#000000',
  },
}
SCSS
$custom: #162b8a;
$custom-light: #6a64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#162b8a",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 229.138,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34586,
    "c": 0.15878,
    "h": 267.1
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#162B8A
secondary
#BEA73E
accent
#CE39EF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #162B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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