#162C80#162C80

#162C80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.144 H 266.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#162C80
RGBrgb(22, 44, 128)
HSLhsl(228, 71%, 29%)
HSVhsv(228, 83%, 50%)
CMYKcmyk(82.8%, 65.6%, 0%, 49.8%)
CIE-LABlab(22.05, 24.90, -49.63)
CIE-LCHlch(22.05, 55.53, 296.64°)
OKLaboklab(33.76% -0.0082 -0.1436)
OKLCHoklch(33.76% 0.144 266.7)
XYZxyz(5.1265, 3.5298, 20.8290)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C80 #806A16
analogous
#166180 #162C80 #351680
triadic
#162C80 #80162C #2C8016
tetradic
#162C80 #801661 #806A16 #168035
square
#162C80 #801661 #806A16 #168035
split-complementary
#162C80 #803516 #618016
monochromatic
#04091A #0D1A4C #162C80 #1F3EB4 #3457DC

Accessibility & contrast

On white

12.31
#162C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162C80
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C80#FFFFFF#000000##FFFFFF
##162C801.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162c80;
/* rgb */ color: rgb(22, 44, 128);
/* oklch */ color: oklch(33.8% 0.144 266.7);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#162c80',
    950: '#000000',
  },
}
SCSS
$custom: #162c80;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162c80",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 227.547,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33764,
    "c": 0.14389,
    "h": 266.7
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#162C80
secondary
#B59C3D
accent
#C83AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162C80

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

Preview Lab → · Contrast checker → · Palette generator →

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