#162D8A#162D8A

#162D8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.156 H 266.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#162D8A
RGBrgb(22, 45, 138)
HSLhsl(228, 73%, 31%)
HSVhsv(228, 84%, 54%)
CMYKcmyk(84.1%, 67.4%, 0%, 45.9%)
CIE-LABlab(23.28, 28.18, -53.90)
CIE-LCHlch(23.28, 60.82, 297.60°)
OKLaboklab(34.96% -0.0091 -0.1561)
OKLCHoklch(34.96% 0.156 266.7)
XYZxyz(5.8551, 3.8816, 24.4805)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D8A #8A7316
analogous
#16678A #162D8A #39168A
triadic
#162D8A #8A162D #2D8A16
tetradic
#162D8A #8A1667 #8A7316 #168A39
square
#162D8A #8A1667 #8A7316 #168A39
split-complementary
#162D8A #8A3916 #678A16
monochromatic
#050B20 #0E1C55 #162D8A #1E3EBF #3B5BE0

Accessibility & contrast

On white

11.82
#162D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#162D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D8A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D8A#FFFFFF#000000##FFFFFF
##162D8A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162d8a;
/* rgb */ color: rgb(22, 45, 138);
/* oklch */ color: oklch(35.0% 0.156 266.7);
Tailwind
colors: {
  custom: {
    50: '#6a65ad',
    500: '#162d8a',
    950: '#000000',
  },
}
SCSS
$custom: #162d8a;
$custom-light: #6a65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#162d8a",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 228.103,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34959,
    "c": 0.15638,
    "h": 266.7
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#162D8A
secondary
#BEA43E
accent
#CB39EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #162D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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