#162A76#162A76

#162A76 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.132 H 267.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#162A76
RGBrgb(22, 42, 118)
HSLhsl(228, 69%, 27%)
HSVhsv(228, 81%, 46%)
CMYKcmyk(81.4%, 64.4%, 0%, 53.7%)
CIE-LABlab(20.57, 22.27, -45.70)
CIE-LCHlch(20.57, 50.84, 295.98°)
OKLaboklab(32.38% -0.0068 -0.1321)
OKLCHoklch(32.38% 0.132 267)
XYZxyz(4.4277, 3.1340, 17.5076)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A76 #766216
analogous
#165A76 #162A76 #321676
triadic
#162A76 #76162A #2A7616
tetradic
#162A76 #76165A #766216 #167632
square
#162A76 #76165A #766216 #167632
split-complementary
#162A76 #763216 #5A7616
monochromatic
#05091A #0C1842 #162A76 #203CAA #2E52D8

Accessibility & contrast

On white

12.91
#162A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A76
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A76#FFFFFF#000000##FFFFFF
##162A761.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162a76;
/* rgb */ color: rgb(22, 42, 118);
/* oklch */ color: oklch(32.4% 0.132 267.0);
Tailwind
colors: {
  custom: {
    50: '#65639e',
    500: '#162a76',
    950: '#000000',
  },
}
SCSS
$custom: #162a76;
$custom-light: #65639e;
$custom-dark: #000000;
JSON
{
  "hex": "#162a76",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 227.5,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.13233,
    "h": 267
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#162A76
secondary
#AC943C
accent
#C73CEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A76

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

Preview Lab → · Contrast checker → · Palette generator →

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