#161B51#161B51

#161B51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.6% C 0.098 H 273.3°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#161B51
RGBrgb(22, 27, 81)
HSLhsl(235, 57%, 20%)
HSVhsv(235, 73%, 32%)
CMYKcmyk(72.8%, 66.7%, 0%, 68.2%)
CIE-LABlab(12.91, 18.04, -33.80)
CIE-LCHlch(12.91, 38.31, 298.09°)
OKLaboklab(25.64% 0.0056 -0.0974)
OKLCHoklch(25.64% 0.098 273.3)
XYZxyz(2.2075, 1.5483, 7.9655)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B51 #514C16
analogous
#163951 #161B51 #2E1651
triadic
#161B51 #51161B #1B5116
tetradic
#161B51 #511639 #514C16 #16512E
square
#161B51 #511639 #514C16 #16512E
split-complementary
#161B51 #512E16 #395116
monochromatic
#070818 #090B21 #161B51 #232B81 #303BB1

Accessibility & contrast

On white

16.03
#161B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#161B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B51
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B51#FFFFFF#000000##FFFFFF
##161B511.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #161b51;
/* rgb */ color: rgb(22, 27, 81);
/* oklch */ color: oklch(25.6% 0.098 273.3);
Tailwind
colors: {
  custom: {
    50: '#5c5782',
    500: '#161b51',
    950: '#000000',
  },
}
SCSS
$custom: #161b51;
$custom-light: #5c5782;
$custom-dark: #000000;
JSON
{
  "hex": "#161b51",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 234.915,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25643,
    "c": 0.09758,
    "h": 273.3
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#161B51
secondary
#88823A
accent
#D447E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #161B51

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

Preview Lab → · Contrast checker → · Palette generator →

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