#162D5D#162D5D

#162D5D is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.091 H 262.9°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#162D5D
RGBrgb(22, 45, 93)
HSLhsl(221, 62%, 23%)
HSVhsv(221, 76%, 36%)
CMYKcmyk(76.3%, 51.6%, 0%, 63.5%)
CIE-LABlab(19.38, 9.69, -31.38)
CIE-LCHlch(19.38, 32.84, 287.16°)
OKLaboklab(30.83% -0.0111 -0.09)
OKLCHoklch(30.83% 0.091 262.9)
XYZxyz(3.2443, 2.8373, 10.7305)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D5D #5D4616
analogous
#16515D #162D5D #22165D
triadic
#162D5D #5D162D #2D5D16
tetradic
#162D5D #5D1651 #5D4616 #165D22
square
#162D5D #5D1651 #5D4616 #165D22
split-complementary
#162D5D #5D2216 #515D16
monochromatic
#060C19 #0A152C #162D5D #22458E #2D5DC0

Accessibility & contrast

On white

13.40
#162D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#162D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D5D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D5D#FFFFFF#000000##FFFFFF
##162D5D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13325F
Deuteranopia (green-blind)
#022C5C
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162d5d;
/* rgb */ color: rgb(22, 45, 93);
/* oklch */ color: oklch(30.8% 0.091 262.9);
Tailwind
colors: {
  custom: {
    50: '#5e658b',
    500: '#162d5d',
    950: '#000000',
  },
}
SCSS
$custom: #162d5d;
$custom-light: #5e658b;
$custom-dark: #000000;
JSON
{
  "hex": "#162d5d",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 93
  },
  "hsl": {
    "h": 220.563,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30828,
    "c": 0.09071,
    "h": 262.9
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#162D5D
secondary
#94773B
accent
#B043E5
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #162D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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