#162D8E#162D8E

#162D8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.162 H 266.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#162D8E
RGBrgb(22, 45, 142)
HSLhsl(229, 73%, 32%)
HSVhsv(229, 85%, 56%)
CMYKcmyk(84.5%, 68.3%, 0%, 44.3%)
CIE-LABlab(23.67, 29.74, -55.74)
CIE-LCHlch(23.67, 63.17, 298.08°)
OKLaboklab(35.37% -0.0093 -0.1615)
OKLCHoklch(35.37% 0.162 266.7)
XYZxyz(6.1500, 3.9996, 26.0338)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D8E #8E7716
analogous
#16698E #162D8E #3B168E
triadic
#162D8E #8E162D #2D8E16
tetradic
#162D8E #8E1669 #8E7716 #168E3B
square
#162D8E #8E1669 #8E7716 #168E3B
split-complementary
#162D8E #8E3B16 #698E16
monochromatic
#060B24 #0E1C59 #162D8E #1E3EC3 #3D5DE1

Accessibility & contrast

On white

11.67
#162D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#162D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D8E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D8E#FFFFFF#000000##FFFFFF
##162D8E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #162d8e;
/* rgb */ color: rgb(22, 45, 142);
/* oklch */ color: oklch(35.4% 0.162 266.7);
Tailwind
colors: {
  custom: {
    50: '#6b66b0',
    500: '#162d8e',
    950: '#000000',
  },
}
SCSS
$custom: #162d8e;
$custom-light: #6b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#162d8e",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 228.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35367,
    "c": 0.16175,
    "h": 266.7
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#162D8E
secondary
#C1A83F
accent
#CD38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #162D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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