#162A79#162A79

#162A79 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.137 H 267.1°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#162A79
RGBrgb(22, 42, 121)
HSLhsl(228, 69%, 28%)
HSVhsv(228, 82%, 47%)
CMYKcmyk(81.8%, 65.3%, 0%, 52.5%)
CIE-LABlab(20.85, 23.48, -47.16)
CIE-LCHlch(20.85, 52.68, 296.47°)
OKLaboklab(32.67% -0.0069 -0.1364)
OKLCHoklch(32.67% 0.137 267.1)
XYZxyz(4.6088, 3.2064, 18.4615)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A79 #796516
analogous
#165B79 #162A79 #331679
triadic
#162A79 #79162A #2A7916
tetradic
#162A79 #79165B #796516 #167933
square
#162A79 #79165B #796516 #167933
split-complementary
#162A79 #793316 #5B7916
monochromatic
#05091A #0D1845 #162A79 #1F3CAD #3052D9

Accessibility & contrast

On white

12.79
#162A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#162A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A79
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A79#FFFFFF#000000##FFFFFF
##162A791.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162a79;
/* rgb */ color: rgb(22, 42, 121);
/* oklch */ color: oklch(32.7% 0.137 267.1);
Tailwind
colors: {
  custom: {
    50: '#6663a0',
    500: '#162a79',
    950: '#000000',
  },
}
SCSS
$custom: #162a79;
$custom-light: #6663a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162a79",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 227.879,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32675,
    "c": 0.1366,
    "h": 267.1
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#162A79
secondary
#AE973D
accent
#C83CEC
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162A79

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

Preview Lab → · Contrast checker → · Palette generator →

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