#161786#161786

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

Color values

HEX#161786
RGBrgb(22, 23, 134)
HSLhsl(239, 72%, 31%)
HSVhsv(239, 84%, 53%)
CMYKcmyk(83.6%, 82.8%, 0%, 47.5%)
CIE-LABlab(17.94, 40.30, -60.21)
CIE-LCHlch(17.94, 72.45, 303.80°)
OKLaboklab(31% -0.0005 -0.1743)
OKLCHoklch(31% 0.174 269.8)
XYZxyz(4.9389, 2.5040, 22.7727)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161786 #868516
analogous
#164F86 #161786 #4D1686
triadic
#161786 #861617 #178616
tetradic
#161786 #86164F #868516 #16864D
square
#161786 #86164F #868516 #16864D
split-complementary
#161786 #864D16 #4F8616
monochromatic
#05051D #0D0E51 #161786 #1F20BB #383ADE

Accessibility & contrast

On white

13.99
#161786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#161786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161786
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161786#FFFFFF#000000##FFFFFF
##1617861.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002684
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #161786;
/* rgb */ color: rgb(22, 23, 134);
/* oklch */ color: oklch(31.0% 0.174 269.8);
Tailwind
colors: {
  custom: {
    50: '#6b57ab',
    500: '#161786',
    950: '#000000',
  },
}
SCSS
$custom: #161786;
$custom-light: #6b57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#161786",
  "rgb": {
    "r": 22,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 239.464,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31001,
    "c": 0.17434,
    "h": 269.8
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #161786

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

Preview Lab → · Contrast checker → · Palette generator →

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