#162D4F#162D4F

#162D4F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.069 H 258.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#162D4F
RGBrgb(22, 45, 79)
HSLhsl(216, 56%, 20%)
HSVhsv(216, 72%, 31%)
CMYKcmyk(72.2%, 43%, 0%, 69%)
CIE-LABlab(18.42, 3.84, -23.58)
CIE-LCHlch(18.42, 23.89, 279.25°)
OKLaboklab(29.77% -0.0141 -0.0671)
OKLCHoklch(29.77% 0.069 258.1)
XYZxyz(2.6800, 2.6116, 7.7585)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D4F #4F3816
analogous
#164A4F #162D4F #1B164F
triadic
#162D4F #4F162D #2D4F16
tetradic
#162D4F #4F164A #4F3816 #164F1B
square
#162D4F #4F164A #4F3816 #164F1B
split-complementary
#162D4F #4F1B16 #4A4F16
monochromatic
#070E18 #09121F #162D4F #23487F #3164AF

Accessibility & contrast

On white

13.79
#162D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#162D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D4F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D4F#FFFFFF#000000##FFFFFF
##162D4F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3050
Deuteranopia (green-blind)
#152A4E
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162d4f;
/* rgb */ color: rgb(22, 45, 79);
/* oklch */ color: oklch(29.8% 0.069 258.1);
Tailwind
colors: {
  custom: {
    50: '#5a6580',
    500: '#162d4f',
    950: '#000000',
  },
}
SCSS
$custom: #162d4f;
$custom-light: #5a6580;
$custom-dark: #000000;
JSON
{
  "hex": "#162d4f",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 79
  },
  "hsl": {
    "h": 215.789,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29774,
    "c": 0.06857,
    "h": 258.1
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#162D4F
secondary
#86683A
accent
#A348E0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #162D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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