#161C87#161C87

#161C87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.171 H 269.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#161C87
RGBrgb(22, 28, 135)
HSLhsl(237, 72%, 31%)
HSVhsv(237, 84%, 53%)
CMYKcmyk(83.7%, 79.3%, 0%, 47.1%)
CIE-LABlab(19.01, 37.89, -59.05)
CIE-LCHlch(19.01, 70.16, 302.69°)
OKLaboklab(31.79% -0.002 -0.1711)
OKLCHoklch(31.79% 0.171 269.3)
XYZxyz(5.1178, 2.7497, 23.1780)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161C87 #878116
analogous
#165487 #161C87 #481687
triadic
#161C87 #87161C #1C8716
tetradic
#161C87 #871654 #878116 #168748
square
#161C87 #871654 #878116 #168748
split-complementary
#161C87 #874816 #548716
monochromatic
#05061E #0D1152 #161C87 #1F27BC #3942DF

Accessibility & contrast

On white

13.55
#161C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#161C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161C87
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161C87#FFFFFF#000000##FFFFFF
##161C871.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #161c87;
/* rgb */ color: rgb(22, 28, 135);
/* oklch */ color: oklch(31.8% 0.171 269.3);
Tailwind
colors: {
  custom: {
    50: '#6b5aab',
    500: '#161c87',
    950: '#000000',
  },
}
SCSS
$custom: #161c87;
$custom-light: #6b5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#161c87",
  "rgb": {
    "r": 22,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 236.814,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31791,
    "c": 0.17108,
    "h": 269.3
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#161C87
secondary
#BBB43E
accent
#E539EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #161C87

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

Preview Lab → · Contrast checker → · Palette generator →

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