#162F63#162F63

#162F63 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.097 H 262.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#162F63
RGBrgb(22, 47, 99)
HSLhsl(221, 64%, 24%)
HSVhsv(221, 78%, 39%)
CMYKcmyk(77.8%, 52.5%, 0%, 61.2%)
CIE-LABlab(20.46, 10.76, -33.59)
CIE-LCHlch(20.46, 35.27, 287.76°)
OKLaboklab(31.79% -0.0122 -0.0965)
OKLCHoklch(31.79% 0.097 262.8)
XYZxyz(3.5987, 3.1041, 12.2114)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F63 #634A16
analogous
#165563 #162F63 #231663
triadic
#162F63 #63162F #2F6316
tetradic
#162F63 #631655 #634A16 #166323
square
#162F63 #631655 #634A16 #166323
split-complementary
#162F63 #632316 #556316
monochromatic
#060C19 #0B1731 #162F63 #214795 #2C5FC7

Accessibility & contrast

On white

12.96
#162F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F63
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F63#FFFFFF#000000##FFFFFF
##162F631.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113565
Deuteranopia (green-blind)
#002E62
Tritanopia (blue-blind)
#003B44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162f63;
/* rgb */ color: rgb(22, 47, 99);
/* oklch */ color: oklch(31.8% 0.097 262.8);
Tailwind
colors: {
  custom: {
    50: '#5f6790',
    500: '#162f63',
    950: '#000000',
  },
}
SCSS
$custom: #162f63;
$custom-light: #5f6790;
$custom-dark: #000000;
JSON
{
  "hex": "#162f63",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 99
  },
  "hsl": {
    "h": 220.519,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31794,
    "c": 0.09725,
    "h": 262.8
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#162F63
secondary
#9A7B3B
accent
#B141E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #162F63

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

Preview Lab → · Contrast checker → · Palette generator →

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