#162D5F#162D5F

#162D5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.094 H 263.4°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#162D5F
RGBrgb(22, 45, 95)
HSLhsl(221, 62%, 23%)
HSVhsv(221, 77%, 37%)
CMYKcmyk(76.8%, 52.6%, 0%, 62.7%)
CIE-LABlab(19.53, 10.53, -32.46)
CIE-LCHlch(19.53, 34.13, 287.98°)
OKLaboklab(30.99% -0.0108 -0.0932)
OKLCHoklch(30.99% 0.094 263.4)
XYZxyz(3.3341, 2.8732, 11.2031)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D5F #5F4816
analogous
#16515F #162D5F #23165F
triadic
#162D5F #5F162D #2D5F16
tetradic
#162D5F #5F1651 #5F4816 #165F23
square
#162D5F #5F1651 #5F4816 #165F23
split-complementary
#162D5F #5F2316 #515F16
monochromatic
#060C19 #0A152D #162D5F #224591 #2D5CC2

Accessibility & contrast

On white

13.34
#162D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162D5F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D5F#FFFFFF#000000##FFFFFF
##162D5F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113361
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162d5f;
/* rgb */ color: rgb(22, 45, 95);
/* oklch */ color: oklch(31.0% 0.094 263.4);
Tailwind
colors: {
  custom: {
    50: '#5e658d',
    500: '#162d5f',
    950: '#000000',
  },
}
SCSS
$custom: #162d5f;
$custom-light: #5e658d;
$custom-dark: #000000;
JSON
{
  "hex": "#162d5f",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 95
  },
  "hsl": {
    "h": 221.096,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3099,
    "c": 0.09383,
    "h": 263.4
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#162D5F
secondary
#96793B
accent
#B242E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #162D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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