#162B79#162B79

#162B79 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.135 H 266.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#162B79
RGBrgb(22, 43, 121)
HSLhsl(227, 69%, 28%)
HSVhsv(227, 82%, 47%)
CMYKcmyk(81.8%, 64.5%, 0%, 52.5%)
CIE-LABlab(21.13, 22.78, -46.71)
CIE-LCHlch(21.13, 51.97, 295.99°)
OKLaboklab(32.88% -0.0075 -0.1351)
OKLCHoklch(32.88% 0.135 266.8)
XYZxyz(4.6447, 3.2783, 18.4734)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B79 #796416
analogous
#165C79 #162B79 #321679
triadic
#162B79 #79162B #2B7916
tetradic
#162B79 #79165C #796416 #167932
square
#162B79 #79165C #796416 #167932
split-complementary
#162B79 #793216 #5C7916
monochromatic
#05091A #0D1945 #162B79 #1F3DAD #3054D9

Accessibility & contrast

On white

12.68
#162B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#162B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B79
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B79#FFFFFF#000000##FFFFFF
##162B791.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162b79;
/* rgb */ color: rgb(22, 43, 121);
/* oklch */ color: oklch(32.9% 0.135 266.8);
Tailwind
colors: {
  custom: {
    50: '#6664a0',
    500: '#162b79',
    950: '#000000',
  },
}
SCSS
$custom: #162b79;
$custom-light: #6664a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162b79",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 227.273,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32877,
    "c": 0.13531,
    "h": 266.8
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#162B79
secondary
#AE963D
accent
#C73CEC
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B79

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

Preview Lab → · Contrast checker → · Palette generator →

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