#162772#162772

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

Color values

HEX#162772
RGBrgb(22, 39, 114)
HSLhsl(229, 68%, 27%)
HSVhsv(229, 81%, 45%)
CMYKcmyk(80.7%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.38, 22.77, -45.09)
CIE-LCHlch(19.38, 50.51, 296.79°)
OKLaboklab(31.38% -0.0048 -0.1304)
OKLCHoklch(31.38% 0.131 267.9)
XYZxyz(4.0926, 2.8361, 16.2480)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162772 #726116
analogous
#165572 #162772 #331672
triadic
#162772 #721627 #277216
tetradic
#162772 #721655 #726116 #167233
square
#162772 #721655 #726116 #167233
split-complementary
#162772 #723316 #557216
monochromatic
#05091A #0C153F #162772 #2039A5 #2C4CD6

Accessibility & contrast

On white

13.40
#162772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#162772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162772
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162772#FFFFFF#000000##FFFFFF
##1627721.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #162772;
/* rgb */ color: rgb(22, 39, 114);
/* oklch */ color: oklch(31.4% 0.131 267.9);
Tailwind
colors: {
  custom: {
    50: '#64609b',
    500: '#162772',
    950: '#000000',
  },
}
SCSS
$custom: #162772;
$custom-light: #64609b;
$custom-dark: #000000;
JSON
{
  "hex": "#162772",
  "rgb": {
    "r": 22,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 228.913,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31379,
    "c": 0.1305,
    "h": 267.9
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#162772
secondary
#A8943C
accent
#CB3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162772

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

Preview Lab → · Contrast checker → · Palette generator →

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