#162D52#162D52

#162D52 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.0% C 0.073 H 259.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#162D52
RGBrgb(22, 45, 82)
HSLhsl(217, 58%, 20%)
HSVhsv(217, 73%, 32%)
CMYKcmyk(73.2%, 45.1%, 0%, 67.8%)
CIE-LABlab(18.61, 5.08, -25.29)
CIE-LCHlch(18.61, 25.79, 281.37°)
OKLaboklab(29.99% -0.0134 -0.0721)
OKLCHoklch(29.99% 0.073 259.5)
XYZxyz(2.7917, 2.6563, 8.3466)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D52 #523B16
analogous
#164B52 #162D52 #1D1652
triadic
#162D52 #52162D #2D5216
tetradic
#162D52 #52164B #523B16 #16521D
square
#162D52 #52164B #523B16 #16521D
split-complementary
#162D52 #521D16 #4B5216
monochromatic
#060D18 #091322 #162D52 #234782 #3062B3

Accessibility & contrast

On white

13.71
#162D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#162D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D52
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D52#FFFFFF#000000##FFFFFF
##162D521.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3053
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162d52;
/* rgb */ color: rgb(22, 45, 82);
/* oklch */ color: oklch(30.0% 0.073 259.5);
Tailwind
colors: {
  custom: {
    50: '#5b6583',
    500: '#162d52',
    950: '#000000',
  },
}
SCSS
$custom: #162d52;
$custom-light: #5b6583;
$custom-dark: #000000;
JSON
{
  "hex": "#162d52",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 82
  },
  "hsl": {
    "h": 217,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29988,
    "c": 0.07333,
    "h": 259.5
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#162D52
secondary
#896B3A
accent
#A647E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050A
muted
#797A7C

Preview Lab

Preview with #162D52

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

Preview Lab → · Contrast checker → · Palette generator →

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