#162B81#162B81

#162B81 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.147 H 267.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#162B81
RGBrgb(22, 43, 129)
HSLhsl(228, 71%, 30%)
HSVhsv(228, 83%, 51%)
CMYKcmyk(82.9%, 66.7%, 0%, 49.4%)
CIE-LABlab(21.88, 25.99, -50.54)
CIE-LCHlch(21.88, 56.83, 297.21°)
OKLaboklab(33.67% -0.0077 -0.1463)
OKLCHoklch(33.67% 0.147 267)
XYZxyz(5.1558, 3.4827, 21.1651)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B81 #816C16
analogous
#166181 #162B81 #361681
triadic
#162B81 #81162B #2B8116
tetradic
#162B81 #811661 #816C16 #168136
square
#162B81 #811661 #816C16 #168136
split-complementary
#162B81 #813616 #618116
monochromatic
#04091A #0D1A4D #162B81 #1F3CB5 #3556DD

Accessibility & contrast

On white

12.38
#162B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B81
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B81#FFFFFF#000000##FFFFFF
##162B811.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162b81;
/* rgb */ color: rgb(22, 43, 129);
/* oklch */ color: oklch(33.7% 0.147 267.0);
Tailwind
colors: {
  custom: {
    50: '#6864a6',
    500: '#162b81',
    950: '#000000',
  },
}
SCSS
$custom: #162b81;
$custom-light: #6864a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162b81",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 228.224,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.14652,
    "h": 267
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#162B81
secondary
#B69E3D
accent
#CA3AEE
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B81

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

Preview Lab → · Contrast checker → · Palette generator →

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