#162877#162877

#162877 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.136 H 267.7°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#162877
RGBrgb(22, 40, 119)
HSLhsl(229, 69%, 28%)
HSVhsv(229, 82%, 47%)
CMYKcmyk(81.5%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.12, 24.08, -47.08)
CIE-LCHlch(20.12, 52.88, 297.09°)
OKLaboklab(32.08% -0.0056 -0.1362)
OKLCHoklch(32.08% 0.136 267.7)
XYZxyz(4.4183, 3.0196, 17.7992)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162877 #776516
analogous
#165877 #162877 #351677
triadic
#162877 #771628 #287716
tetradic
#162877 #771658 #776516 #167735
square
#162877 #771658 #776516 #167735
split-complementary
#162877 #773516 #587716
monochromatic
#05091A #0C1743 #162877 #2039AB #2F4ED9

Accessibility & contrast

On white

13.09
#162877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#162877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162877
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162877#FFFFFF#000000##FFFFFF
##1628771.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162877;
/* rgb */ color: rgb(22, 40, 119);
/* oklch */ color: oklch(32.1% 0.136 267.7);
Tailwind
colors: {
  custom: {
    50: '#65619f',
    500: '#162877',
    950: '#000000',
  },
}
SCSS
$custom: #162877;
$custom-light: #65619f;
$custom-dark: #000000;
JSON
{
  "hex": "#162877",
  "rgb": {
    "r": 22,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 228.866,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32077,
    "c": 0.13632,
    "h": 267.7
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#162877
secondary
#AC983C
accent
#CB3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162877

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

Preview Lab → · Contrast checker → · Palette generator →

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