#162B71#162B71

#162B71 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.124 H 266.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#162B71
RGBrgb(22, 43, 113)
HSLhsl(226, 67%, 26%)
HSVhsv(226, 81%, 44%)
CMYKcmyk(80.5%, 61.9%, 0%, 55.7%)
CIE-LABlab(20.40, 19.51, -42.77)
CIE-LCHlch(20.40, 47.01, 294.52°)
OKLaboklab(32.11% -0.0076 -0.1235)
OKLCHoklch(32.11% 0.124 266.5)
XYZxyz(4.1743, 3.0901, 15.9960)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B71 #715C16
analogous
#165971 #162B71 #2F1671
triadic
#162B71 #71162B #2B7116
tetradic
#162B71 #711659 #715C16 #16712F
square
#162B71 #711659 #715C16 #16712F
split-complementary
#162B71 #712F16 #597116
monochromatic
#050A1A #0C183E #162B71 #203EA4 #2C53D6

Accessibility & contrast

On white

12.98
#162B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B71
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B71#FFFFFF#000000##FFFFFF
##162B711.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162b71;
/* rgb */ color: rgb(22, 43, 113);
/* oklch */ color: oklch(32.1% 0.124 266.5);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#162b71',
    950: '#000000',
  },
}
SCSS
$custom: #162b71;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#162b71",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 226.154,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32113,
    "c": 0.12378,
    "h": 266.5
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#162B71
secondary
#A78E3C
accent
#C23EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162B71

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

Preview Lab → · Contrast checker → · Palette generator →

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