#161F5B#161F5B

#161F5B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.107 H 270.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#161F5B
RGBrgb(22, 31, 91)
HSLhsl(232, 61%, 22%)
HSVhsv(232, 76%, 36%)
CMYKcmyk(75.8%, 65.9%, 0%, 64.3%)
CIE-LABlab(14.98, 19.17, -37.18)
CIE-LCHlch(14.98, 41.83, 297.28°)
OKLaboklab(27.47% 0.0017 -0.1073)
OKLCHoklch(27.47% 0.107 270.9)
XYZxyz(2.7085, 1.9056, 10.1206)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F5B #5B5216
analogous
#16425B #161F5B #30165B
triadic
#161F5B #5B161F #1F5B16
tetradic
#161F5B #5B1642 #5B5216 #165B30
square
#161F5B #5B1642 #5B5216 #165B30
split-complementary
#161F5B #5B3016 #425B16
monochromatic
#060819 #0A0E2A #161F5B #22308C #2E41BE

Accessibility & contrast

On white

15.20
#161F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#161F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F5B
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F5B#FFFFFF#000000##FFFFFF
##161F5B1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #161f5b;
/* rgb */ color: rgb(22, 31, 91);
/* oklch */ color: oklch(27.5% 0.107 270.9);
Tailwind
colors: {
  custom: {
    50: '#5e5a8a',
    500: '#161f5b',
    950: '#000000',
  },
}
SCSS
$custom: #161f5b;
$custom-light: #5e5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#161f5b",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 232.174,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27465,
    "c": 0.1073,
    "h": 270.9
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#161F5B
secondary
#92873B
accent
#CF44E4
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #161F5B

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

Preview Lab → · Contrast checker → · Palette generator →

#161F5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva