#162D57#162D57

#162D57 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.081 H 261.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#162D57
RGBrgb(22, 45, 87)
HSLhsl(219, 60%, 21%)
HSVhsv(219, 75%, 34%)
CMYKcmyk(74.7%, 48.3%, 0%, 65.9%)
CIE-LABlab(18.95, 7.17, -28.09)
CIE-LCHlch(18.95, 28.99, 284.32°)
OKLaboklab(30.36% -0.0123 -0.0803)
OKLCHoklch(30.36% 0.081 261.3)
XYZxyz(2.9889, 2.7352, 9.3854)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D57 #574016
analogous
#164E57 #162D57 #201657
triadic
#162D57 #57162D #2D5716
tetradic
#162D57 #57164E #574016 #165720
square
#162D57 #57164E #574016 #165720
split-complementary
#162D57 #572016 #4E5716
monochromatic
#060D18 #0A1426 #162D57 #224688 #2F60B9

Accessibility & contrast

On white

13.57
#162D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#162D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D57
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D57#FFFFFF#000000##FFFFFF
##162D571.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#0C2B56
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #162d57;
/* rgb */ color: rgb(22, 45, 87);
/* oklch */ color: oklch(30.4% 0.081 261.3);
Tailwind
colors: {
  custom: {
    50: '#5c6587',
    500: '#162d57',
    950: '#000000',
  },
}
SCSS
$custom: #162d57;
$custom-light: #5c6587;
$custom-dark: #000000;
JSON
{
  "hex": "#162d57",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 87
  },
  "hsl": {
    "h": 218.769,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3036,
    "c": 0.08127,
    "h": 261.3
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#162D57
secondary
#8E713A
accent
#AB45E3
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #162D57

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

Preview Lab → · Contrast checker → · Palette generator →

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