#162387#162387

#162387 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.164 H 268.5°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#162387
RGBrgb(22, 35, 135)
HSLhsl(233, 72%, 31%)
HSVhsv(233, 84%, 53%)
CMYKcmyk(83.7%, 74.1%, 0%, 47.1%)
CIE-LABlab(20.52, 33.64, -56.55)
CIE-LCHlch(20.52, 65.80, 300.74°)
OKLaboklab(32.87% -0.0044 -0.1639)
OKLCHoklch(32.87% 0.164 268.5)
XYZxyz(5.3036, 3.1213, 23.2399)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162387 #877A16
analogous
#165B87 #162387 #411687
triadic
#162387 #871623 #238716
tetradic
#162387 #87165B #877A16 #168741
square
#162387 #87165B #877A16 #168741
split-complementary
#162387 #874116 #5B8716
monochromatic
#05081E #0D1552 #162387 #1F31BC #394CDF

Accessibility & contrast

On white

12.93
#162387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162387
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162387#FFFFFF#000000##FFFFFF
##1623871.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162387;
/* rgb */ color: rgb(22, 35, 135);
/* oklch */ color: oklch(32.9% 0.164 268.5);
Tailwind
colors: {
  custom: {
    50: '#6a5eab',
    500: '#162387',
    950: '#000000',
  },
}
SCSS
$custom: #162387;
$custom-light: #6a5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#162387",
  "rgb": {
    "r": 22,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 233.097,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32866,
    "c": 0.16394,
    "h": 268.5
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#162387
secondary
#BBAD3E
accent
#DA39EF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #162387

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

Preview Lab → · Contrast checker → · Palette generator →

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