#162D4E#162D4E

#162D4E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.7% C 0.067 H 257.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#162D4E
RGBrgb(22, 45, 78)
HSLhsl(215, 56%, 20%)
HSVhsv(215, 72%, 31%)
CMYKcmyk(71.8%, 42.3%, 0%, 69.4%)
CIE-LABlab(18.35, 3.43, -23.00)
CIE-LCHlch(18.35, 23.26, 278.48°)
OKLaboklab(29.7% -0.0144 -0.0654)
OKLCHoklch(29.7% 0.067 257.6)
XYZxyz(2.6439, 2.5971, 7.5682)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D4E #4E3716
analogous
#16494E #162D4E #1B164E
triadic
#162D4E #4E162D #2D4E16
tetradic
#162D4E #4E1649 #4E3716 #164E1B
square
#162D4E #4E1649 #4E3716 #164E1B
split-complementary
#162D4E #4E1B16 #494E16
monochromatic
#070E18 #09111E #162D4E #23497E #3164AD

Accessibility & contrast

On white

13.82
#162D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162D4E
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D4E#FFFFFF#000000##FFFFFF
##162D4E1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E304F
Deuteranopia (green-blind)
#162A4D
Tritanopia (blue-blind)
#003539
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #162d4e;
/* rgb */ color: rgb(22, 45, 78);
/* oklch */ color: oklch(29.7% 0.067 257.6);
Tailwind
colors: {
  custom: {
    50: '#5a6580',
    500: '#162d4e',
    950: '#000000',
  },
}
SCSS
$custom: #162d4e;
$custom-light: #5a6580;
$custom-dark: #000000;
JSON
{
  "hex": "#162d4e",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 215.357,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29703,
    "c": 0.06698,
    "h": 257.6
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#162D4E
secondary
#85673A
accent
#A149DF
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #162D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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