#162371#162371

#162371 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.134 H 269.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#162371
RGBrgb(22, 35, 113)
HSLhsl(231, 67%, 26%)
HSVhsv(231, 81%, 44%)
CMYKcmyk(80.5%, 69%, 0%, 55.7%)
CIE-LABlab(18.21, 25.18, -46.36)
CIE-LCHlch(18.21, 52.76, 298.51°)
OKLaboklab(30.49% -0.0022 -0.1342)
OKLCHoklch(30.49% 0.134 269.1)
XYZxyz(3.9115, 2.5645, 15.9084)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162371 #716416
analogous
#165171 #162371 #371671
triadic
#162371 #711623 #237116
tetradic
#162371 #711651 #716416 #167137
square
#162371 #711651 #716416 #167137
split-complementary
#162371 #713716 #517116
monochromatic
#05081A #0C133E #162371 #2033A4 #2C44D6

Accessibility & contrast

On white

13.88
#162371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#162371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162371
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162371#FFFFFF#000000##FFFFFF
##1623711.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #162371;
/* rgb */ color: rgb(22, 35, 113);
/* oklch */ color: oklch(30.5% 0.134 269.1);
Tailwind
colors: {
  custom: {
    50: '#645e9b',
    500: '#162371',
    950: '#000000',
  },
}
SCSS
$custom: #162371;
$custom-light: #645e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#162371",
  "rgb": {
    "r": 22,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 231.429,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30492,
    "c": 0.13418,
    "h": 269.1
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#162371
secondary
#A7983C
accent
#D23EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #162371

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

Preview Lab → · Contrast checker → · Palette generator →

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