#162972#162972

#162972 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.128 H 267.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#162972
RGBrgb(22, 41, 114)
HSLhsl(228, 68%, 27%)
HSVhsv(228, 81%, 45%)
CMYKcmyk(80.7%, 64%, 0%, 55.3%)
CIE-LABlab(19.93, 21.35, -44.19)
CIE-LCHlch(19.93, 49.08, 295.79°)
OKLaboklab(31.79% -0.0062 -0.1277)
OKLCHoklch(31.79% 0.128 267.2)
XYZxyz(4.1600, 2.9709, 16.2705)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162972 #725F16
analogous
#165772 #162972 #311672
triadic
#162972 #721629 #297216
tetradic
#162972 #721657 #725F16 #167231
square
#162972 #721657 #725F16 #167231
split-complementary
#162972 #723116 #577216
monochromatic
#05091A #0C173F #162972 #203BA5 #2C4FD6

Accessibility & contrast

On white

13.17
#162972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162972
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162972#FFFFFF#000000##FFFFFF
##1629721.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162972;
/* rgb */ color: rgb(22, 41, 114);
/* oklch */ color: oklch(31.8% 0.128 267.2);
Tailwind
colors: {
  custom: {
    50: '#64629b',
    500: '#162972',
    950: '#000000',
  },
}
SCSS
$custom: #162972;
$custom-light: #64629b;
$custom-dark: #000000;
JSON
{
  "hex": "#162972",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 227.609,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31788,
    "c": 0.12789,
    "h": 267.2
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#162972
secondary
#A8923C
accent
#C73DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162972

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

Preview Lab → · Contrast checker → · Palette generator →

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