#162A56#162A56

#162A56 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.084 H 263.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#162A56
RGBrgb(22, 42, 86)
HSLhsl(221, 59%, 21%)
HSVhsv(221, 74%, 34%)
CMYKcmyk(74.4%, 51.2%, 0%, 66.3%)
CIE-LABlab(17.91, 8.95, -29.09)
CIE-LCHlch(17.91, 30.44, 287.11°)
OKLaboklab(29.54% -0.0092 -0.0833)
OKLCHoklch(29.54% 0.084 263.7)
XYZxyz(2.8380, 2.4981, 9.1349)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A56 #564216
analogous
#164A56 #162A56 #221656
triadic
#162A56 #56162A #2A5616
tetradic
#162A56 #56164A #564216 #165622
square
#162A56 #56164A #564216 #165622
split-complementary
#162A56 #562216 #4A5616
monochromatic
#060C18 #0A1225 #162A56 #224287 #2F5AB7

Accessibility & contrast

On white

14.00
#162A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#162A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A56
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A56#FFFFFF#000000##FFFFFF
##162A561.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132F58
Deuteranopia (green-blind)
#052955
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #162a56;
/* rgb */ color: rgb(22, 42, 86);
/* oklch */ color: oklch(29.5% 0.084 263.7);
Tailwind
colors: {
  custom: {
    50: '#5c6386',
    500: '#162a56',
    950: '#000000',
  },
}
SCSS
$custom: #162a56;
$custom-light: #5c6386;
$custom-dark: #000000;
JSON
{
  "hex": "#162a56",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 221.25,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29538,
    "c": 0.08384,
    "h": 263.7
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#162A56
secondary
#8D733A
accent
#B145E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #162A56

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

Preview Lab → · Contrast checker → · Palette generator →

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