#162879#162879

#162879 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.139 H 267.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#162879
RGBrgb(22, 40, 121)
HSLhsl(229, 69%, 28%)
HSVhsv(229, 82%, 47%)
CMYKcmyk(81.8%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.31, 24.88, -48.04)
CIE-LCHlch(20.31, 54.10, 297.38°)
OKLaboklab(32.28% -0.0057 -0.139)
OKLCHoklch(32.28% 0.139 267.7)
XYZxyz(4.5397, 3.0681, 18.4384)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162879 #796716
analogous
#165979 #162879 #351679
triadic
#162879 #791628 #287916
tetradic
#162879 #791659 #796716 #167935
square
#162879 #791659 #796716 #167935
split-complementary
#162879 #793516 #597916
monochromatic
#05091A #0D1745 #162879 #1F39AD #304FD9

Accessibility & contrast

On white

13.01
#162879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#162879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162879
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162879#FFFFFF#000000##FFFFFF
##1628791.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162879;
/* rgb */ color: rgb(22, 40, 121);
/* oklch */ color: oklch(32.3% 0.139 267.7);
Tailwind
colors: {
  custom: {
    50: '#6661a1',
    500: '#162879',
    950: '#000000',
  },
}
SCSS
$custom: #162879;
$custom-light: #6661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#162879",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 229.091,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32278,
    "c": 0.13915,
    "h": 267.7
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#162879
secondary
#AE9A3D
accent
#CC3CEC
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162879

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

Preview Lab → · Contrast checker → · Palette generator →

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