#162587#162587

#162587 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.162 H 268.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#162587
RGBrgb(22, 37, 135)
HSLhsl(232, 72%, 31%)
HSVhsv(232, 84%, 53%)
CMYKcmyk(83.7%, 72.6%, 0%, 47.1%)
CIE-LABlab(20.99, 32.35, -55.78)
CIE-LCHlch(20.99, 64.49, 300.11°)
OKLaboklab(33.2% -0.0052 -0.1616)
OKLCHoklch(33.2% 0.162 268.2)
XYZxyz(5.3641, 3.2423, 23.2601)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162587 #877816
analogous
#165D87 #162587 #3F1687
triadic
#162587 #871625 #258716
tetradic
#162587 #87165D #877816 #16873F
square
#162587 #87165D #877816 #16873F
split-complementary
#162587 #873F16 #5D8716
monochromatic
#05081E #0D1752 #162587 #1F33BC #394FDF

Accessibility & contrast

On white

12.74
#162587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#162587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162587
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162587#FFFFFF#000000##FFFFFF
##1625871.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162587;
/* rgb */ color: rgb(22, 37, 135);
/* oklch */ color: oklch(33.2% 0.162 268.2);
Tailwind
colors: {
  custom: {
    50: '#6a60ab',
    500: '#162587',
    950: '#000000',
  },
}
SCSS
$custom: #162587;
$custom-light: #6a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#162587",
  "rgb": {
    "r": 22,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 232.035,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33202,
    "c": 0.16172,
    "h": 268.2
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#162587
secondary
#BBAA3E
accent
#D739EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162587

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

Preview Lab → · Contrast checker → · Palette generator →

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