#161F57#161F57

#161F57 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.101 H 271.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#161F57
RGBrgb(22, 31, 87)
HSLhsl(232, 60%, 21%)
HSVhsv(232, 75%, 34%)
CMYKcmyk(74.7%, 64.4%, 0%, 65.9%)
CIE-LABlab(14.62, 17.54, -35.09)
CIE-LCHlch(14.62, 39.23, 296.55°)
OKLaboklab(27.08% 0.0018 -0.1012)
OKLCHoklch(27.08% 0.101 271)
XYZxyz(2.5406, 1.8384, 9.2359)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F57 #574E16
analogous
#164057 #161F57 #2E1657
triadic
#161F57 #57161F #1F5716
tetradic
#161F57 #571640 #574E16 #16572E
square
#161F57 #571640 #574E16 #16572E
split-complementary
#161F57 #572E16 #405716
monochromatic
#060918 #0A0E26 #161F57 #223088 #2F42B9

Accessibility & contrast

On white

15.35
#161F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#161F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F57
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F57#FFFFFF#000000##FFFFFF
##161F571.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #161f57;
/* rgb */ color: rgb(22, 31, 87);
/* oklch */ color: oklch(27.1% 0.101 271.0);
Tailwind
colors: {
  custom: {
    50: '#5d5a87',
    500: '#161f57',
    950: '#000000',
  },
}
SCSS
$custom: #161f57;
$custom-light: #5d5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#161f57",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 231.692,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27077,
    "c": 0.10119,
    "h": 271
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#161F57
secondary
#8E833A
accent
#CD45E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #161F57

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

Preview Lab → · Contrast checker → · Palette generator →

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