#162987#162987

#162987 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.157 H 267.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#162987
RGBrgb(22, 41, 135)
HSLhsl(230, 72%, 31%)
HSVhsv(230, 84%, 53%)
CMYKcmyk(83.7%, 69.6%, 0%, 47.1%)
CIE-LABlab(21.96, 29.71, -54.18)
CIE-LCHlch(21.96, 61.79, 298.74°)
OKLaboklab(33.91% -0.007 -0.157)
OKLCHoklch(33.91% 0.157 267.5)
XYZxyz(5.4955, 3.5051, 23.3039)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162987 #877416
analogous
#166187 #162987 #3C1687
triadic
#162987 #871629 #298716
tetradic
#162987 #871661 #877416 #16873C
square
#162987 #871661 #877416 #16873C
split-complementary
#162987 #873C16 #618716
monochromatic
#05091E #0D1952 #162987 #1F39BC #3955DF

Accessibility & contrast

On white

12.34
#162987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162987
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162987#FFFFFF#000000##FFFFFF
##1629871.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162987;
/* rgb */ color: rgb(22, 41, 135);
/* oklch */ color: oklch(33.9% 0.157 267.5);
Tailwind
colors: {
  custom: {
    50: '#6a62ab',
    500: '#162987',
    950: '#000000',
  },
}
SCSS
$custom: #162987;
$custom-light: #6a62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#162987",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 229.912,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33908,
    "c": 0.15711,
    "h": 267.5
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#162987
secondary
#BBA63E
accent
#D039EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162987

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

Preview Lab → · Contrast checker → · Palette generator →

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