#162F80#162F80

#162F80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.140 H 265.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#162F80
RGBrgb(22, 47, 128)
HSLhsl(226, 71%, 29%)
HSVhsv(226, 83%, 50%)
CMYKcmyk(82.8%, 63.3%, 0%, 49.8%)
CIE-LABlab(22.87, 22.80, -48.30)
CIE-LCHlch(22.87, 53.41, 295.27°)
OKLaboklab(34.37% -0.0101 -0.1397)
OKLCHoklch(34.37% 0.14 265.9)
XYZxyz(5.2423, 3.7615, 20.8676)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F80 #806716
analogous
#166480 #162F80 #321680
triadic
#162F80 #80162F #2F8016
tetradic
#162F80 #801664 #806716 #168032
square
#162F80 #801664 #806716 #168032
split-complementary
#162F80 #803216 #648016
monochromatic
#040A1A #0D1C4C #162F80 #1F42B4 #345CDC

Accessibility & contrast

On white

11.98
#162F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#162F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F80
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F80#FFFFFF#000000##FFFFFF
##162F801.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162f80;
/* rgb */ color: rgb(22, 47, 128);
/* oklch */ color: oklch(34.4% 0.140 265.9);
Tailwind
colors: {
  custom: {
    50: '#6767a6',
    500: '#162f80',
    950: '#000000',
  },
}
SCSS
$custom: #162f80;
$custom-light: #6767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162f80",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 225.849,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34367,
    "c": 0.14007,
    "h": 265.9
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#162F80
secondary
#B5983D
accent
#C33AED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F80

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

Preview Lab → · Contrast checker → · Palette generator →

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