#162A77#162A77

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

Color values

HEX#162A77
RGBrgb(22, 42, 119)
HSLhsl(228, 69%, 28%)
HSVhsv(228, 82%, 47%)
CMYKcmyk(81.5%, 64.7%, 0%, 53.3%)
CIE-LABlab(20.67, 22.67, -46.19)
CIE-LCHlch(20.67, 51.45, 296.15°)
OKLaboklab(32.48% -0.0069 -0.1336)
OKLCHoklch(32.48% 0.134 267.1)
XYZxyz(4.4875, 3.1579, 17.8222)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A77 #776316
analogous
#165A77 #162A77 #331677
triadic
#162A77 #77162A #2A7716
tetradic
#162A77 #77165A #776316 #167733
square
#162A77 #77165A #776316 #167733
split-complementary
#162A77 #773316 #5A7716
monochromatic
#05091A #0C1843 #162A77 #203CAB #2F52D9

Accessibility & contrast

On white

12.87
#162A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A77
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A77#FFFFFF#000000##FFFFFF
##162A771.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162a77;
/* rgb */ color: rgb(22, 42, 119);
/* oklch */ color: oklch(32.5% 0.134 267.1);
Tailwind
colors: {
  custom: {
    50: '#65639f',
    500: '#162a77',
    950: '#000000',
  },
}
SCSS
$custom: #162a77;
$custom-light: #65639f;
$custom-dark: #000000;
JSON
{
  "hex": "#162a77",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 227.629,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32479,
    "c": 0.13376,
    "h": 267.1
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#162A77
secondary
#AC953C
accent
#C73CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162A77

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

Preview Lab → · Contrast checker → · Palette generator →

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