#162887#162887

#162887 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.158 H 267.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#162887
RGBrgb(22, 40, 135)
HSLhsl(230, 72%, 31%)
HSVhsv(230, 84%, 53%)
CMYKcmyk(83.7%, 70.4%, 0%, 47.1%)
CIE-LABlab(21.71, 30.38, -54.59)
CIE-LCHlch(21.71, 62.47, 299.09°)
OKLaboklab(33.73% -0.0065 -0.1582)
OKLCHoklch(33.73% 0.158 267.6)
XYZxyz(5.4613, 3.4368, 23.2925)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162887 #877516
analogous
#166187 #162887 #3C1687
triadic
#162887 #871628 #288716
tetradic
#162887 #871661 #877516 #16873C
square
#162887 #871661 #877516 #16873C
split-complementary
#162887 #873C16 #618716
monochromatic
#05091E #0D1852 #162887 #1F38BC #3953DF

Accessibility & contrast

On white

12.45
#162887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162887
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162887#FFFFFF#000000##FFFFFF
##1628871.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162887;
/* rgb */ color: rgb(22, 40, 135);
/* oklch */ color: oklch(33.7% 0.158 267.6);
Tailwind
colors: {
  custom: {
    50: '#6a62ab',
    500: '#162887',
    950: '#000000',
  },
}
SCSS
$custom: #162887;
$custom-light: #6a62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#162887",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 230.442,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33727,
    "c": 0.15829,
    "h": 267.6
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#162887
secondary
#BBA73E
accent
#D239EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #162887

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

Preview Lab → · Contrast checker → · Palette generator →

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