#162D81#162D81

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

Color values

HEX#162D81
RGBrgb(22, 45, 129)
HSLhsl(227, 71%, 30%)
HSVhsv(227, 83%, 51%)
CMYKcmyk(82.9%, 65.1%, 0%, 49.4%)
CIE-LABlab(22.41, 24.60, -49.67)
CIE-LCHlch(22.41, 55.43, 296.35°)
OKLaboklab(34.06% -0.0088 -0.1437)
OKLCHoklch(34.06% 0.144 266.5)
XYZxyz(5.2303, 3.6317, 21.1900)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D81 #816A16
analogous
#166381 #162D81 #351681
triadic
#162D81 #81162D #2D8116
tetradic
#162D81 #811663 #816A16 #168135
square
#162D81 #811663 #816A16 #168135
split-complementary
#162D81 #813516 #638116
monochromatic
#04091A #0D1B4D #162D81 #1F3FB5 #3559DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##162D81#FFFFFF#000000##FFFFFF
##162D811.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)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162d81;
/* rgb */ color: rgb(22, 45, 129);
/* oklch */ color: oklch(34.1% 0.144 266.5);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#162d81',
    950: '#000000',
  },
}
SCSS
$custom: #162d81;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162d81",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 227.103,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3406,
    "c": 0.14402,
    "h": 266.5
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#162D81
secondary
#B69C3D
accent
#C73AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D81

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

Preview Lab → · Contrast checker → · Palette generator →

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