#162787#162787

#162787 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.159 H 267.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#162787
RGBrgb(22, 39, 135)
HSLhsl(231, 72%, 31%)
HSVhsv(231, 84%, 53%)
CMYKcmyk(83.7%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.47, 31.04, -54.99)
CIE-LCHlch(21.47, 63.15, 299.44°)
OKLaboklab(33.55% -0.006 -0.1593)
OKLCHoklch(33.55% 0.159 267.8)
XYZxyz(5.4281, 3.3702, 23.2814)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162787 #877616
analogous
#165F87 #162787 #3D1687
triadic
#162787 #871627 #278716
tetradic
#162787 #87165F #877616 #16873D
square
#162787 #87165F #877616 #16873D
split-complementary
#162787 #873D16 #5F8716
monochromatic
#05091E #0D1852 #162787 #1F36BC #3952DF

Accessibility & contrast

On white

12.54
#162787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162787
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162787#FFFFFF#000000##FFFFFF
##1627871.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162787;
/* rgb */ color: rgb(22, 39, 135);
/* oklch */ color: oklch(33.5% 0.159 267.8);
Tailwind
colors: {
  custom: {
    50: '#6a61ab',
    500: '#162787',
    950: '#000000',
  },
}
SCSS
$custom: #162787;
$custom-light: #6a61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#162787",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 230.973,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33549,
    "c": 0.15945,
    "h": 267.8
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#162787
secondary
#BBA83E
accent
#D339EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162787

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

Preview Lab → · Contrast checker → · Palette generator →

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