#161987#161987

#161987 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.174 H 269.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#161987
RGBrgb(22, 25, 135)
HSLhsl(238, 72%, 31%)
HSVhsv(238, 84%, 53%)
CMYKcmyk(83.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(18.43, 39.57, -60.02)
CIE-LCHlch(18.43, 71.89, 303.40°)
OKLaboklab(31.38% -0.0012 -0.1738)
OKLCHoklch(31.38% 0.174 269.6)
XYZxyz(5.0502, 2.6145, 23.1555)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161987 #878416
analogous
#165187 #161987 #4B1687
triadic
#161987 #871619 #198716
tetradic
#161987 #871651 #878416 #16874B
square
#161987 #871651 #878416 #16874B
split-complementary
#161987 #874B16 #518716
monochromatic
#05061E #0D0F52 #161987 #1F23BC #393DDF

Accessibility & contrast

On white

13.79
#161987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#161987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161987
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161987#FFFFFF#000000##FFFFFF
##1619871.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002785
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #161987;
/* rgb */ color: rgb(22, 25, 135);
/* oklch */ color: oklch(31.4% 0.174 269.6);
Tailwind
colors: {
  custom: {
    50: '#6b58ab',
    500: '#161987',
    950: '#000000',
  },
}
SCSS
$custom: #161987;
$custom-light: #6b58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#161987",
  "rgb": {
    "r": 22,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 238.407,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31381,
    "c": 0.17383,
    "h": 269.6
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#161987
secondary
#BBB83E
accent
#EA39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #161987

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

Preview Lab → · Contrast checker → · Palette generator →

#161987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva