#162C71#162C71

#162C71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.3% C 0.122 H 266.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#162C71
RGBrgb(22, 44, 113)
HSLhsl(225, 67%, 26%)
HSVhsv(225, 81%, 44%)
CMYKcmyk(80.5%, 61.1%, 0%, 55.7%)
CIE-LABlab(20.69, 18.79, -42.30)
CIE-LCHlch(20.69, 46.29, 293.95°)
OKLaboklab(32.33% -0.0083 -0.1222)
OKLCHoklch(32.33% 0.122 266.1)
XYZxyz(4.2111, 3.1637, 16.0083)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C71 #715B16
analogous
#165A71 #162C71 #2E1671
triadic
#162C71 #71162C #2C7116
tetradic
#162C71 #71165A #715B16 #16712E
square
#162C71 #71165A #715B16 #16712E
split-complementary
#162C71 #712E16 #5A7116
monochromatic
#050A1A #0C183E #162C71 #2040A4 #2C55D6

Accessibility & contrast

On white

12.86
#162C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#162C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C71
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C71#FFFFFF#000000##FFFFFF
##162C711.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162c71;
/* rgb */ color: rgb(22, 44, 113);
/* oklch */ color: oklch(32.3% 0.122 266.1);
Tailwind
colors: {
  custom: {
    50: '#63649a',
    500: '#162c71',
    950: '#000000',
  },
}
SCSS
$custom: #162c71;
$custom-light: #63649a;
$custom-dark: #000000;
JSON
{
  "hex": "#162c71",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 225.495,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32328,
    "c": 0.12244,
    "h": 266.1
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#162C71
secondary
#A78D3C
accent
#C13EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162C71

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

Preview Lab → · Contrast checker → · Palette generator →

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