#162C78#162C78

#162C78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.133 H 266.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#162C78
RGBrgb(22, 44, 120)
HSLhsl(227, 69%, 28%)
HSVhsv(227, 82%, 47%)
CMYKcmyk(81.7%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.31, 21.66, -45.77)
CIE-LCHlch(21.31, 50.64, 295.33°)
OKLaboklab(32.99% -0.0082 -0.1323)
OKLCHoklch(32.99% 0.133 266.5)
XYZxyz(4.6205, 3.3275, 18.1644)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C78 #786216
analogous
#165D78 #162C78 #311678
triadic
#162C78 #78162C #2C7816
tetradic
#162C78 #78165D #786216 #167831
square
#162C78 #78165D #786216 #167831
split-complementary
#162C78 #783116 #5D7816
monochromatic
#05091A #0D1944 #162C78 #1F3FAC #2F55D9

Accessibility & contrast

On white

12.61
#162C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#162C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C78
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C78#FFFFFF#000000##FFFFFF
##162C781.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162c78;
/* rgb */ color: rgb(22, 44, 120);
/* oklch */ color: oklch(33.0% 0.133 266.5);
Tailwind
colors: {
  custom: {
    50: '#6564a0',
    500: '#162c78',
    950: '#000000',
  },
}
SCSS
$custom: #162c78;
$custom-light: #6564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162c78",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 226.531,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32985,
    "c": 0.13259,
    "h": 266.5
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#162C78
secondary
#AD943C
accent
#C43CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #162C78

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

Preview Lab → · Contrast checker → · Palette generator →

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