#162F5A#162F5A

#162F5A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.083 H 260.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#162F5A
RGBrgb(22, 47, 90)
HSLhsl(218, 61%, 22%)
HSVhsv(218, 76%, 35%)
CMYKcmyk(75.6%, 47.8%, 0%, 64.7%)
CIE-LABlab(19.81, 6.97, -28.71)
CIE-LCHlch(19.81, 29.54, 283.65°)
OKLaboklab(31.09% -0.0138 -0.0821)
OKLCHoklch(31.09% 0.083 260.5)
XYZxyz(3.1922, 2.9415, 10.0704)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F5A #5A4116
analogous
#16515A #162F5A #1F165A
triadic
#162F5A #5A162F #2F5A16
tetradic
#162F5A #5A1651 #5A4116 #165A1F
square
#162F5A #5A1651 #5A4116 #165A1F
split-complementary
#162F5A #5A1F16 #515A16
monochromatic
#060D19 #0A1529 #162F5A #22498B #2E62BC

Accessibility & contrast

On white

13.22
#162F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162F5A
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F5A#FFFFFF#000000##FFFFFF
##162F5A1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A335C
Deuteranopia (green-blind)
#0D2D59
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162f5a;
/* rgb */ color: rgb(22, 47, 90);
/* oklch */ color: oklch(31.1% 0.083 260.5);
Tailwind
colors: {
  custom: {
    50: '#5d6789',
    500: '#162f5a',
    950: '#000000',
  },
}
SCSS
$custom: #162f5a;
$custom-light: #5d6789;
$custom-dark: #000000;
JSON
{
  "hex": "#162f5a",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 90
  },
  "hsl": {
    "h": 217.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31088,
    "c": 0.08327,
    "h": 260.5
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#162F5A
secondary
#91713B
accent
#A944E4
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #162F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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