#161F5F#161F5F

#161F5F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.113 H 270.8°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#161F5F
RGBrgb(22, 31, 95)
HSLhsl(233, 62%, 23%)
HSVhsv(233, 77%, 37%)
CMYKcmyk(76.8%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.36, 20.79, -39.22)
CIE-LCHlch(15.36, 44.40, 297.93°)
OKLaboklab(27.86% 0.0016 -0.1133)
OKLCHoklch(27.86% 0.113 270.8)
XYZxyz(2.8857, 1.9765, 11.0537)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F5F #5F5616
analogous
#16435F #161F5F #31165F
triadic
#161F5F #5F161F #1F5F16
tetradic
#161F5F #5F1643 #5F5616 #165F31
square
#161F5F #5F1643 #5F5616 #165F31
split-complementary
#161F5F #5F3116 #435F16
monochromatic
#060819 #0A0F2D #161F5F #222F91 #2D3FC2

Accessibility & contrast

On white

15.05
#161F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#161F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F5F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F5F#FFFFFF#000000##FFFFFF
##161F5F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #161f5f;
/* rgb */ color: rgb(22, 31, 95);
/* oklch */ color: oklch(27.9% 0.113 270.8);
Tailwind
colors: {
  custom: {
    50: '#5f5a8d',
    500: '#161f5f',
    950: '#000000',
  },
}
SCSS
$custom: #161f5f;
$custom-light: #5f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#161f5f",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 232.603,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27862,
    "c": 0.11331,
    "h": 270.8
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#161F5F
secondary
#968B3B
accent
#D142E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #161F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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