#162F5D#162F5D

#162F5D is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.088 H 261.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#162F5D
RGBrgb(22, 47, 93)
HSLhsl(219, 62%, 23%)
HSVhsv(219, 76%, 36%)
CMYKcmyk(76.3%, 49.5%, 0%, 63.5%)
CIE-LABlab(20.02, 8.23, -30.36)
CIE-LCHlch(20.02, 31.45, 285.18°)
OKLaboklab(31.32% -0.0132 -0.087)
OKLCHoklch(31.32% 0.088 261.4)
XYZxyz(3.3225, 2.9936, 10.7565)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F5D #5D4416
analogous
#16535D #162F5D #20165D
triadic
#162F5D #5D162F #2F5D16
tetradic
#162F5D #5D1653 #5D4416 #165D20
square
#162F5D #5D1653 #5D4416 #165D20
split-complementary
#162F5D #5D2016 #535D16
monochromatic
#060D19 #0A162C #162F5D #22488E #2D61C0

Accessibility & contrast

On white

13.13
#162F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F5D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F5D#FFFFFF#000000##FFFFFF
##162F5D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17345F
Deuteranopia (green-blind)
#082D5C
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162f5d;
/* rgb */ color: rgb(22, 47, 93);
/* oklch */ color: oklch(31.3% 0.088 261.4);
Tailwind
colors: {
  custom: {
    50: '#5e678b',
    500: '#162f5d',
    950: '#000000',
  },
}
SCSS
$custom: #162f5d;
$custom-light: #5e678b;
$custom-dark: #000000;
JSON
{
  "hex": "#162f5d",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 218.873,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31318,
    "c": 0.08796,
    "h": 261.4
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#162F5D
secondary
#94753B
accent
#AC43E5
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #162F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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