#162B78#162B78

#162B78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.134 H 266.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#162B78
RGBrgb(22, 43, 120)
HSLhsl(227, 69%, 28%)
HSVhsv(227, 82%, 47%)
CMYKcmyk(81.7%, 64.2%, 0%, 52.9%)
CIE-LABlab(21.03, 22.37, -46.22)
CIE-LCHlch(21.03, 51.35, 295.82°)
OKLaboklab(32.78% -0.0075 -0.1337)
OKLCHoklch(32.78% 0.134 266.8)
XYZxyz(4.5837, 3.2539, 18.1521)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B78 #786316
analogous
#165C78 #162B78 #321678
triadic
#162B78 #78162B #2B7816
tetradic
#162B78 #78165C #786316 #167832
square
#162B78 #78165C #786316 #167832
split-complementary
#162B78 #783216 #5C7816
monochromatic
#05091A #0D1844 #162B78 #1F3EAC #2F54D9

Accessibility & contrast

On white

12.72
#162B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#162B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B78
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B78#FFFFFF#000000##FFFFFF
##162B781.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162b78;
/* rgb */ color: rgb(22, 43, 120);
/* oklch */ color: oklch(32.8% 0.134 266.8);
Tailwind
colors: {
  custom: {
    50: '#6564a0',
    500: '#162b78',
    950: '#000000',
  },
}
SCSS
$custom: #162b78;
$custom-light: #6564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162b78",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 227.143,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.13389,
    "h": 266.8
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#162B78
secondary
#AD953C
accent
#C63CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162B78

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

Preview Lab → · Contrast checker → · Palette generator →

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