#162D78#162D78

#162D78 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.131 H 266.1°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#162D78
RGBrgb(22, 45, 120)
HSLhsl(226, 69%, 28%)
HSVhsv(226, 82%, 47%)
CMYKcmyk(81.7%, 62.5%, 0%, 52.9%)
CIE-LABlab(21.59, 20.95, -45.31)
CIE-LCHlch(21.59, 49.92, 294.81°)
OKLaboklab(33.19% -0.0088 -0.131)
OKLCHoklch(33.19% 0.131 266.1)
XYZxyz(4.6582, 3.4029, 18.1770)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D78 #786116
analogous
#165E78 #162D78 #301678
triadic
#162D78 #78162D #2D7816
tetradic
#162D78 #78165E #786116 #167830
square
#162D78 #78165E #786116 #167830
split-complementary
#162D78 #783016 #5E7816
monochromatic
#050A1A #0D1A44 #162D78 #1F40AC #2F57D9

Accessibility & contrast

On white

12.50
#162D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#162D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D78
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D78#FFFFFF#000000##FFFFFF
##162D781.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162d78;
/* rgb */ color: rgb(22, 45, 120);
/* oklch */ color: oklch(33.2% 0.131 266.1);
Tailwind
colors: {
  custom: {
    50: '#6565a0',
    500: '#162d78',
    950: '#000000',
  },
}
SCSS
$custom: #162d78;
$custom-light: #6565a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162d78",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 225.918,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33194,
    "c": 0.13128,
    "h": 266.1
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#162D78
secondary
#AD933C
accent
#C33CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #162D78

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

Preview Lab → · Contrast checker → · Palette generator →

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