#162777#162777

#162777 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.138 H 267.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#162777
RGBrgb(22, 39, 119)
HSLhsl(229, 69%, 28%)
HSVhsv(229, 82%, 47%)
CMYKcmyk(81.5%, 67.2%, 0%, 53.3%)
CIE-LABlab(19.85, 24.78, -47.52)
CIE-LCHlch(19.85, 53.59, 297.54°)
OKLaboklab(31.88% -0.005 -0.1375)
OKLCHoklch(31.88% 0.138 267.9)
XYZxyz(4.3850, 2.9530, 17.7881)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162777 #776616
analogous
#165777 #162777 #361677
triadic
#162777 #771627 #277716
tetradic
#162777 #771657 #776616 #167736
square
#162777 #771657 #776616 #167736
split-complementary
#162777 #773616 #577716
monochromatic
#05081A #0C1643 #162777 #2038AB #2F4DD9

Accessibility & contrast

On white

13.20
#162777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162777
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162777#FFFFFF#000000##FFFFFF
##1627771.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162777;
/* rgb */ color: rgb(22, 39, 119);
/* oklch */ color: oklch(31.9% 0.138 267.9);
Tailwind
colors: {
  custom: {
    50: '#65619f',
    500: '#162777',
    950: '#000000',
  },
}
SCSS
$custom: #162777;
$custom-light: #65619f;
$custom-dark: #000000;
JSON
{
  "hex": "#162777",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 119
  },
  "hsl": {
    "h": 229.485,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3188,
    "c": 0.13759,
    "h": 267.9
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#162777
secondary
#AC993C
accent
#CD3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #162777

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

Preview Lab → · Contrast checker → · Palette generator →

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