#162087#162087

#162087 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.167 H 268.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#162087
RGBrgb(22, 32, 135)
HSLhsl(235, 72%, 31%)
HSVhsv(235, 84%, 53%)
CMYKcmyk(83.7%, 76.3%, 0%, 47.1%)
CIE-LABlab(19.85, 35.51, -57.66)
CIE-LCHlch(19.85, 67.72, 301.63°)
OKLaboklab(32.39% -0.0033 -0.1671)
OKLCHoklch(32.39% 0.167 268.9)
XYZxyz(5.2191, 2.9523, 23.2117)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162087 #877D16
analogous
#165887 #162087 #441687
triadic
#162087 #871620 #208716
tetradic
#162087 #871658 #877D16 #168744
square
#162087 #871658 #877D16 #168744
split-complementary
#162087 #874416 #588716
monochromatic
#05071E #0D1452 #162087 #1F2CBC #3947DF

Accessibility & contrast

On white

13.20
#162087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162087
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162087#FFFFFF#000000##FFFFFF
##1620871.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162087;
/* rgb */ color: rgb(22, 32, 135);
/* oklch */ color: oklch(32.4% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#6b5cab',
    500: '#162087',
    950: '#000000',
  },
}
SCSS
$custom: #162087;
$custom-light: #6b5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#162087",
  "rgb": {
    "r": 22,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 234.69,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32386,
    "c": 0.16711,
    "h": 268.9
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#162087
secondary
#BBB03E
accent
#DF39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #162087

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

Preview Lab → · Contrast checker → · Palette generator →

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