#161F5D#161F5D

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

Color values

HEX#161F5D
RGBrgb(22, 31, 93)
HSLhsl(232, 62%, 23%)
HSVhsv(232, 76%, 36%)
CMYKcmyk(76.3%, 66.7%, 0%, 63.5%)
CIE-LABlab(15.17, 19.98, -38.20)
CIE-LCHlch(15.17, 43.12, 297.61°)
OKLaboklab(27.66% 0.0017 -0.1103)
OKLCHoklch(27.66% 0.11 270.9)
XYZxyz(2.7960, 1.9406, 10.5810)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F5D #5D5416
analogous
#16435D #161F5D #30165D
triadic
#161F5D #5D161F #1F5D16
tetradic
#161F5D #5D1643 #5D5416 #165D30
square
#161F5D #5D1643 #5D5416 #165D30
split-complementary
#161F5D #5D3016 #435D16
monochromatic
#060819 #0A0F2C #161F5D #222F8E #2D40C0

Accessibility & contrast

On white

15.13
#161F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#161F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F5D
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F5D#FFFFFF#000000##FFFFFF
##161F5D1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #161f5d;
/* rgb */ color: rgb(22, 31, 93);
/* oklch */ color: oklch(27.7% 0.110 270.9);
Tailwind
colors: {
  custom: {
    50: '#5f5a8c',
    500: '#161f5d',
    950: '#000000',
  },
}
SCSS
$custom: #161f5d;
$custom-light: #5f5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#161f5d",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 232.394,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27662,
    "c": 0.11032,
    "h": 270.9
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#161F5D
secondary
#94893B
accent
#D043E5
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #161F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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