#161887#161887

#161887 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.175 H 269.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#161887
RGBrgb(22, 24, 135)
HSLhsl(239, 72%, 31%)
HSVhsv(239, 84%, 53%)
CMYKcmyk(83.7%, 82.2%, 0%, 47.1%)
CIE-LABlab(18.24, 40.11, -60.33)
CIE-LCHlch(18.24, 72.44, 303.62°)
OKLaboklab(31.25% -0.0009 -0.1747)
OKLCHoklch(31.25% 0.175 269.7)
XYZxyz(5.0292, 2.5725, 23.1485)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161887 #878516
analogous
#165087 #161887 #4C1687
triadic
#161887 #871618 #188716
tetradic
#161887 #871650 #878516 #16874C
square
#161887 #871650 #878516 #16874C
split-complementary
#161887 #874C16 #508716
monochromatic
#05051E #0D0F52 #161887 #1F21BC #393CDF

Accessibility & contrast

On white

13.87
#161887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161887
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161887#FFFFFF#000000##FFFFFF
##1618871.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #161887;
/* rgb */ color: rgb(22, 24, 135);
/* oklch */ color: oklch(31.3% 0.175 269.7);
Tailwind
colors: {
  custom: {
    50: '#6b58ab',
    500: '#161887',
    950: '#000000',
  },
}
SCSS
$custom: #161887;
$custom-light: #6b58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#161887",
  "rgb": {
    "r": 22,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 238.938,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.1747,
    "h": 269.7
  },
  "luminance": 0.02573
}

Semantic roles & 50–950 ramp

primary
#161887
secondary
#BBB93E
accent
#EB39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #161887

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

Preview Lab → · Contrast checker → · Palette generator →

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