#161787#161787

#161787 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.176 H 269.8°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#161787
RGBrgb(22, 23, 135)
HSLhsl(239, 72%, 31%)
HSVhsv(239, 84%, 53%)
CMYKcmyk(83.7%, 83%, 0%, 47.1%)
CIE-LABlab(18.06, 40.64, -60.63)
CIE-LCHlch(18.06, 72.99, 303.83°)
OKLaboklab(31.13% -0.0007 -0.1756)
OKLCHoklch(31.13% 0.176 269.8)
XYZxyz(5.0090, 2.5320, 23.1417)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161787 #878616
analogous
#164F87 #161787 #4D1687
triadic
#161787 #871617 #178716
tetradic
#161787 #87164F #878616 #16874D
square
#161787 #87164F #878616 #16874D
split-complementary
#161787 #874D16 #4F8716
monochromatic
#05051E #0D0E52 #161787 #1F20BC #393ADF

Accessibility & contrast

On white

13.94
#161787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#161787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161787
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161787#FFFFFF#000000##FFFFFF
##1617871.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002685
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #161787;
/* rgb */ color: rgb(22, 23, 135);
/* oklch */ color: oklch(31.1% 0.176 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c57ab',
    500: '#161787',
    950: '#000000',
  },
}
SCSS
$custom: #161787;
$custom-light: #6c57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#161787",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 239.469,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31125,
    "c": 0.17555,
    "h": 269.8
  },
  "luminance": 0.02533
}

Semantic roles & 50–950 ramp

primary
#161787
secondary
#BBBA3E
accent
#ED39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #161787

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

Preview Lab → · Contrast checker → · Palette generator →

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