#162B8D#162B8D

#162B8D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.163 H 267.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#162B8D
RGBrgb(22, 43, 141)
HSLhsl(229, 73%, 32%)
HSVhsv(229, 84%, 55%)
CMYKcmyk(84.4%, 69.5%, 0%, 44.7%)
CIE-LABlab(23.07, 30.69, -56.10)
CIE-LCHlch(23.07, 63.95, 298.68°)
OKLaboklab(34.9% -0.0083 -0.1626)
OKLCHoklch(34.9% 0.163 267.1)
XYZxyz(6.0008, 3.8207, 25.6153)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B8D #8D7816
analogous
#16678D #162B8D #3D168D
triadic
#162B8D #8D162B #2B8D16
tetradic
#162B8D #8D1667 #8D7816 #168D3D
square
#162B8D #8D1667 #8D7816 #168D3D
split-complementary
#162B8D #8D3D16 #678D16
monochromatic
#050B23 #0E1B58 #162B8D #1E3BC2 #3D5AE1

Accessibility & contrast

On white

11.90
#162B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162B8D
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B8D#FFFFFF#000000##FFFFFF
##162B8D1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162b8d;
/* rgb */ color: rgb(22, 43, 141);
/* oklch */ color: oklch(34.9% 0.163 267.1);
Tailwind
colors: {
  custom: {
    50: '#6b64af',
    500: '#162b8d',
    950: '#000000',
  },
}
SCSS
$custom: #162b8d;
$custom-light: #6b64af;
$custom-dark: #000000;
JSON
{
  "hex": "#162b8d",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 229.412,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34898,
    "c": 0.16277,
    "h": 267.1
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#162B8D
secondary
#C1AA3E
accent
#CF38F0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080511
muted
#7B7A80

Preview Lab

Preview with #162B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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