#161F51#161F51

#161F51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.092 H 271.1°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#161F51
RGBrgb(22, 31, 81)
HSLhsl(231, 57%, 20%)
HSVhsv(231, 73%, 32%)
CMYKcmyk(72.8%, 61.7%, 0%, 68.2%)
CIE-LABlab(14.08, 15.07, -31.89)
CIE-LCHlch(14.08, 35.27, 295.29°)
OKLaboklab(26.51% 0.0017 -0.0918)
OKLCHoklch(26.51% 0.092 271.1)
XYZxyz(2.3056, 1.7444, 7.9982)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F51 #514816
analogous
#163D51 #161F51 #2A1651
triadic
#161F51 #51161F #1F5116
tetradic
#161F51 #51163D #514816 #16512A
square
#161F51 #51163D #514816 #16512A
split-complementary
#161F51 #512A16 #3D5116
monochromatic
#070918 #090D21 #161F51 #233181 #3044B1

Accessibility & contrast

On white

15.57
#161F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#161F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F51
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F51#FFFFFF#000000##FFFFFF
##161F511.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #161f51;
/* rgb */ color: rgb(22, 31, 81);
/* oklch */ color: oklch(26.5% 0.092 271.1);
Tailwind
colors: {
  custom: {
    50: '#5c5a82',
    500: '#161f51',
    950: '#000000',
  },
}
SCSS
$custom: #161f51;
$custom-light: #5c5a82;
$custom-dark: #000000;
JSON
{
  "hex": "#161f51",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 230.847,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26514,
    "c": 0.09179,
    "h": 271.1
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#161F51
secondary
#887D3A
accent
#C947E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #161F51

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

Preview Lab → · Contrast checker → · Palette generator →

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