#162978#162978

#162978 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.136 H 267.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#162978
RGBrgb(22, 41, 120)
HSLhsl(228, 69%, 28%)
HSVhsv(228, 82%, 47%)
CMYKcmyk(81.7%, 65.8%, 0%, 52.9%)
CIE-LABlab(20.49, 23.78, -47.12)
CIE-LCHlch(20.49, 52.78, 296.78°)
OKLaboklab(32.38% -0.0062 -0.1363)
OKLCHoklch(32.38% 0.136 267.4)
XYZxyz(4.5128, 3.1120, 18.1285)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162978 #786516
analogous
#165A78 #162978 #341678
triadic
#162978 #781629 #297816
tetradic
#162978 #78165A #786516 #167834
square
#162978 #78165A #786516 #167834
split-complementary
#162978 #783416 #5A7816
monochromatic
#05091A #0D1744 #162978 #1F3BAC #2F50D9

Accessibility & contrast

On white

12.94
#162978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162978
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162978#FFFFFF#000000##FFFFFF
##1629781.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162978;
/* rgb */ color: rgb(22, 41, 120);
/* oklch */ color: oklch(32.4% 0.136 267.4);
Tailwind
colors: {
  custom: {
    50: '#6562a0',
    500: '#162978',
    950: '#000000',
  },
}
SCSS
$custom: #162978;
$custom-light: #6562a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162978",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 228.367,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32375,
    "c": 0.13646,
    "h": 267.4
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#162978
secondary
#AD973C
accent
#CA3CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162978

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

Preview Lab → · Contrast checker → · Palette generator →

#162978 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva