#162687#162687

#162687 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.161 H 268.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#162687
RGBrgb(22, 38, 135)
HSLhsl(232, 72%, 31%)
HSVhsv(232, 84%, 53%)
CMYKcmyk(83.7%, 71.9%, 0%, 47.1%)
CIE-LABlab(21.23, 31.70, -55.39)
CIE-LCHlch(21.23, 63.82, 299.78°)
OKLaboklab(33.37% -0.0056 -0.1605)
OKLCHoklch(33.37% 0.161 268)
XYZxyz(5.3956, 3.3054, 23.2706)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162687 #877716
analogous
#165E87 #162687 #3E1687
triadic
#162687 #871626 #268716
tetradic
#162687 #87165E #877716 #16873E
square
#162687 #87165E #877716 #16873E
split-complementary
#162687 #873E16 #5E8716
monochromatic
#05081E #0D1752 #162687 #1F35BC #3950DF

Accessibility & contrast

On white

12.64
#162687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#162687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162687
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162687#FFFFFF#000000##FFFFFF
##1626871.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162687;
/* rgb */ color: rgb(22, 38, 135);
/* oklch */ color: oklch(33.4% 0.161 268.0);
Tailwind
colors: {
  custom: {
    50: '#6a60ab',
    500: '#162687',
    950: '#000000',
  },
}
SCSS
$custom: #162687;
$custom-light: #6a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#162687",
  "rgb": {
    "r": 22,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 231.504,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33374,
    "c": 0.1606,
    "h": 268
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#162687
secondary
#BBA93E
accent
#D539EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162687

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

Preview Lab → · Contrast checker → · Palette generator →

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