#162771#162771

#162771 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.129 H 267.9°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#162771
RGBrgb(22, 39, 113)
HSLhsl(229, 67%, 26%)
HSVhsv(229, 81%, 44%)
CMYKcmyk(80.5%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.28, 22.37, -44.60)
CIE-LCHlch(19.28, 49.90, 296.63°)
OKLaboklab(31.28% -0.0048 -0.129)
OKLCHoklch(31.28% 0.129 267.9)
XYZxyz(4.0360, 2.8134, 15.9499)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162771 #716016
analogous
#165571 #162771 #331671
triadic
#162771 #711627 #277116
tetradic
#162771 #711655 #716016 #167133
square
#162771 #711655 #716016 #167133
split-complementary
#162771 #713316 #557116
monochromatic
#05091A #0C153E #162771 #2039A4 #2C4BD6

Accessibility & contrast

On white

13.44
#162771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#162771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162771
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162771#FFFFFF#000000##FFFFFF
##1627711.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162771;
/* rgb */ color: rgb(22, 39, 113);
/* oklch */ color: oklch(31.3% 0.129 267.9);
Tailwind
colors: {
  custom: {
    50: '#64609b',
    500: '#162771',
    950: '#000000',
  },
}
SCSS
$custom: #162771;
$custom-light: #64609b;
$custom-dark: #000000;
JSON
{
  "hex": "#162771",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 228.791,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31281,
    "c": 0.12906,
    "h": 267.9
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#162771
secondary
#A7933C
accent
#CA3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162771

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

Preview Lab → · Contrast checker → · Palette generator →

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