#161D87#161D87

#161D87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.170 H 269.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#161D87
RGBrgb(22, 29, 135)
HSLhsl(236, 72%, 31%)
HSVhsv(236, 84%, 53%)
CMYKcmyk(83.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(19.22, 37.31, -58.71)
CIE-LCHlch(19.22, 69.57, 302.43°)
OKLaboklab(31.94% -0.0023 -0.1701)
OKLCHoklch(31.94% 0.17 269.2)
XYZxyz(5.1419, 2.7980, 23.1860)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161D87 #878016
analogous
#165587 #161D87 #471687
triadic
#161D87 #87161D #1D8716
tetradic
#161D87 #871655 #878016 #168747
square
#161D87 #871655 #878016 #168747
split-complementary
#161D87 #874716 #558716
monochromatic
#05061E #0D1252 #161D87 #1F28BC #3943DF

Accessibility & contrast

On white

13.46
#161D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#161D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161D87
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161D87#FFFFFF#000000##FFFFFF
##161D871.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #161d87;
/* rgb */ color: rgb(22, 29, 135);
/* oklch */ color: oklch(31.9% 0.170 269.2);
Tailwind
colors: {
  custom: {
    50: '#6b5aab',
    500: '#161d87',
    950: '#000000',
  },
}
SCSS
$custom: #161d87;
$custom-light: #6b5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#161d87",
  "rgb": {
    "r": 22,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 236.283,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31935,
    "c": 0.17013,
    "h": 269.2
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#161D87
secondary
#BBB33E
accent
#E339EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #161D87

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

Preview Lab → · Contrast checker → · Palette generator →

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