#162F5F#162F5F

#162F5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.091 H 261.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#162F5F
RGBrgb(22, 47, 95)
HSLhsl(219, 62%, 23%)
HSVhsv(219, 77%, 37%)
CMYKcmyk(76.8%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.16, 9.07, -31.44)
CIE-LCHlch(20.16, 32.73, 286.10°)
OKLaboklab(31.47% -0.0128 -0.0902)
OKLCHoklch(31.47% 0.091 261.9)
XYZxyz(3.4122, 3.0295, 11.2292)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F5F #5F4616
analogous
#16535F #162F5F #21165F
triadic
#162F5F #5F162F #2F5F16
tetradic
#162F5F #5F1653 #5F4616 #165F21
square
#162F5F #5F1653 #5F4616 #165F21
split-complementary
#162F5F #5F2116 #535F16
monochromatic
#060C19 #0A162D #162F5F #224891 #2D60C2

Accessibility & contrast

On white

13.08
#162F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#162F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F5F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F5F#FFFFFF#000000##FFFFFF
##162F5F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153461
Deuteranopia (green-blind)
#042E5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162f5f;
/* rgb */ color: rgb(22, 47, 95);
/* oklch */ color: oklch(31.5% 0.091 261.9);
Tailwind
colors: {
  custom: {
    50: '#5e678d',
    500: '#162f5f',
    950: '#000000',
  },
}
SCSS
$custom: #162f5f;
$custom-light: #5e678d;
$custom-dark: #000000;
JSON
{
  "hex": "#162f5f",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 219.452,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.31474,
    "c": 0.09107,
    "h": 261.9
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#162F5F
secondary
#96773B
accent
#AE42E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #162F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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