#162C81#162C81

#162C81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.145 H 266.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#162C81
RGBrgb(22, 44, 129)
HSLhsl(228, 71%, 30%)
HSVhsv(228, 83%, 51%)
CMYKcmyk(82.9%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.15, 25.30, -50.11)
CIE-LCHlch(22.15, 56.13, 296.79°)
OKLaboklab(33.86% -0.0083 -0.145)
OKLCHoklch(33.86% 0.145 266.7)
XYZxyz(5.1926, 3.5563, 21.1774)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C81 #816B16
analogous
#166181 #162C81 #361681
triadic
#162C81 #81162C #2C8116
tetradic
#162C81 #811661 #816B16 #168136
square
#162C81 #811661 #816B16 #168136
split-complementary
#162C81 #813616 #618116
monochromatic
#04091A #0D1A4D #162C81 #1F3EB5 #3557DD

Accessibility & contrast

On white

12.27
#162C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#162C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C81
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C81#FFFFFF#000000##FFFFFF
##162C811.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162c81;
/* rgb */ color: rgb(22, 44, 129);
/* oklch */ color: oklch(33.9% 0.145 266.7);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#162c81',
    950: '#000000',
  },
}
SCSS
$custom: #162c81;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162c81",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 227.664,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33863,
    "c": 0.14528,
    "h": 266.7
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#162C81
secondary
#B69D3D
accent
#C93AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C81

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

Preview Lab → · Contrast checker → · Palette generator →

#162C81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva