#162D62#162D62

#162D62 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.098 H 263.9°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#162D62
RGBrgb(22, 45, 98)
HSLhsl(222, 63%, 24%)
HSVhsv(222, 78%, 38%)
CMYKcmyk(77.6%, 54.1%, 0%, 61.6%)
CIE-LABlab(19.76, 11.80, -34.07)
CIE-LCHlch(19.76, 36.05, 289.10°)
OKLaboklab(31.24% -0.0104 -0.0979)
OKLCHoklch(31.24% 0.098 263.9)
XYZxyz(3.4731, 2.9288, 11.9352)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D62 #624B16
analogous
#165362 #162D62 #251662
triadic
#162D62 #62162D #2D6216
tetradic
#162D62 #621653 #624B16 #166225
square
#162D62 #621653 #624B16 #166225
split-complementary
#162D62 #622516 #536216
monochromatic
#060B19 #0B1630 #162D62 #214494 #2C5BC6

Accessibility & contrast

On white

13.24
#162D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D62
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D62#FFFFFF#000000##FFFFFF
##162D621.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3364
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162d62;
/* rgb */ color: rgb(22, 45, 98);
/* oklch */ color: oklch(31.2% 0.098 263.9);
Tailwind
colors: {
  custom: {
    50: '#5f658f',
    500: '#162d62',
    950: '#000000',
  },
}
SCSS
$custom: #162d62;
$custom-light: #5f658f;
$custom-dark: #000000;
JSON
{
  "hex": "#162d62",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 98
  },
  "hsl": {
    "h": 221.842,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31236,
    "c": 0.09848,
    "h": 263.9
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#162D62
secondary
#997C3B
accent
#B441E6
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #162D62

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

Preview Lab → · Contrast checker → · Palette generator →

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