#161F5A#161F5A

#161F5A is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.106 H 271.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#161F5A
RGBrgb(22, 31, 90)
HSLhsl(232, 61%, 22%)
HSVhsv(232, 76%, 35%)
CMYKcmyk(75.6%, 65.6%, 0%, 64.7%)
CIE-LABlab(14.89, 18.76, -36.66)
CIE-LCHlch(14.89, 41.18, 297.10°)
OKLaboklab(27.37% 0.0018 -0.1058)
OKLCHoklch(27.37% 0.106 271)
XYZxyz(2.6657, 1.8885, 9.8949)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F5A #5A5116
analogous
#16415A #161F5A #2F165A
triadic
#161F5A #5A161F #1F5A16
tetradic
#161F5A #5A1641 #5A5116 #165A2F
square
#161F5A #5A1641 #5A5116 #165A2F
split-complementary
#161F5A #5A2F16 #415A16
monochromatic
#060819 #0A0E29 #161F5A #22308B #2E41BC

Accessibility & contrast

On white

15.24
#161F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161F5A
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F5A#FFFFFF#000000##FFFFFF
##161F5A1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #161f5a;
/* rgb */ color: rgb(22, 31, 90);
/* oklch */ color: oklch(27.4% 0.106 271.0);
Tailwind
colors: {
  custom: {
    50: '#5e5a89',
    500: '#161f5a',
    950: '#000000',
  },
}
SCSS
$custom: #161f5a;
$custom-light: #5e5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#161f5a",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 232.059,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27367,
    "c": 0.10578,
    "h": 271
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#161F5A
secondary
#91863B
accent
#CF44E4
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #161F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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