#162D71#162D71

#162D71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.121 H 265.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#162D71
RGBrgb(22, 45, 113)
HSLhsl(225, 67%, 26%)
HSVhsv(225, 81%, 44%)
CMYKcmyk(80.5%, 60.2%, 0%, 55.7%)
CIE-LABlab(20.98, 18.07, -41.83)
CIE-LCHlch(20.98, 45.57, 293.36°)
OKLaboklab(32.54% -0.0091 -0.1208)
OKLCHoklch(32.54% 0.121 265.7)
XYZxyz(4.2488, 3.2391, 16.0209)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D71 #715A16
analogous
#165B71 #162D71 #2D1671
triadic
#162D71 #71162D #2D7116
tetradic
#162D71 #71165B #715A16 #16712D
square
#162D71 #71165B #715A16 #16712D
split-complementary
#162D71 #712D16 #5B7116
monochromatic
#050A1A #0C193E #162D71 #2041A4 #2C57D6

Accessibility & contrast

On white

12.74
#162D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#162D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D71
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D71#FFFFFF#000000##FFFFFF
##162D711.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162d71;
/* rgb */ color: rgb(22, 45, 113);
/* oklch */ color: oklch(32.5% 0.121 265.7);
Tailwind
colors: {
  custom: {
    50: '#63659a',
    500: '#162d71',
    950: '#000000',
  },
}
SCSS
$custom: #162d71;
$custom-light: #63659a;
$custom-dark: #000000;
JSON
{
  "hex": "#162d71",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 224.835,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32544,
    "c": 0.1211,
    "h": 265.7
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#162D71
secondary
#A78C3C
accent
#BF3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162D71

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

Preview Lab → · Contrast checker → · Palette generator →

#162D71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva