#162487#162487

#162487 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.163 H 268.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#162487
RGBrgb(22, 36, 135)
HSLhsl(233, 72%, 31%)
HSVhsv(233, 84%, 53%)
CMYKcmyk(83.7%, 73.3%, 0%, 47.1%)
CIE-LABlab(20.75, 33.00, -56.17)
CIE-LCHlch(20.75, 65.15, 300.43°)
OKLaboklab(33.03% -0.0048 -0.1628)
OKLCHoklch(33.03% 0.163 268.3)
XYZxyz(5.3334, 3.1810, 23.2499)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162487 #877916
analogous
#165C87 #162487 #401687
triadic
#162487 #871624 #248716
tetradic
#162487 #87165C #877916 #168740
square
#162487 #87165C #877916 #168740
split-complementary
#162487 #874016 #5C8716
monochromatic
#05081E #0D1652 #162487 #1F32BC #394DDF

Accessibility & contrast

On white

12.83
#162487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#162487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162487
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162487#FFFFFF#000000##FFFFFF
##1624871.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162487;
/* rgb */ color: rgb(22, 36, 135);
/* oklch */ color: oklch(33.0% 0.163 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a5fab',
    500: '#162487',
    950: '#000000',
  },
}
SCSS
$custom: #162487;
$custom-light: #6a5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#162487",
  "rgb": {
    "r": 22,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 232.566,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33033,
    "c": 0.16284,
    "h": 268.3
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#162487
secondary
#BBAC3E
accent
#D839EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #162487

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

Preview Lab → · Contrast checker → · Palette generator →

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