#162A78#162A78

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

Color values

HEX#162A78
RGBrgb(22, 42, 120)
HSLhsl(228, 69%, 28%)
HSVhsv(228, 82%, 47%)
CMYKcmyk(81.7%, 65%, 0%, 52.9%)
CIE-LABlab(20.76, 23.08, -46.67)
CIE-LCHlch(20.76, 52.07, 296.31°)
OKLaboklab(32.58% -0.0069 -0.135)
OKLCHoklch(32.58% 0.135 267.1)
XYZxyz(4.5478, 3.1820, 18.1402)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A78 #786416
analogous
#165B78 #162A78 #331678
triadic
#162A78 #78162A #2A7816
tetradic
#162A78 #78165B #786416 #167833
square
#162A78 #78165B #786416 #167833
split-complementary
#162A78 #783316 #5B7816
monochromatic
#05091A #0D1844 #162A78 #1F3CAC #2F52D9

Accessibility & contrast

On white

12.83
#162A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A78
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A78#FFFFFF#000000##FFFFFF
##162A781.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #162a78;
/* rgb */ color: rgb(22, 42, 120);
/* oklch */ color: oklch(32.6% 0.135 267.1);
Tailwind
colors: {
  custom: {
    50: '#6563a0',
    500: '#162a78',
    950: '#000000',
  },
}
SCSS
$custom: #162a78;
$custom-light: #6563a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162a78",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 227.755,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32576,
    "c": 0.13518,
    "h": 267.1
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#162A78
secondary
#AD963C
accent
#C83CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162A78

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

Preview Lab → · Contrast checker → · Palette generator →

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