#162D79#162D79

#162D79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.133 H 266.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#162D79
RGBrgb(22, 45, 121)
HSLhsl(226, 69%, 28%)
HSVhsv(226, 82%, 47%)
CMYKcmyk(81.8%, 62.8%, 0%, 52.5%)
CIE-LABlab(21.68, 21.36, -45.80)
CIE-LCHlch(21.68, 50.54, 295.00°)
OKLaboklab(33.29% -0.0088 -0.1324)
OKLCHoklch(33.29% 0.133 266.2)
XYZxyz(4.7192, 3.4273, 18.4983)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D79 #796216
analogous
#165E79 #162D79 #311679
triadic
#162D79 #79162D #2D7916
tetradic
#162D79 #79165E #796216 #167931
square
#162D79 #79165E #796216 #167931
split-complementary
#162D79 #793116 #5E7916
monochromatic
#050A1A #0D1A45 #162D79 #1F40AD #3057D9

Accessibility & contrast

On white

12.46
#162D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D79
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D79#FFFFFF#000000##FFFFFF
##162D791.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162d79;
/* rgb */ color: rgb(22, 45, 121);
/* oklch */ color: oklch(33.3% 0.133 266.2);
Tailwind
colors: {
  custom: {
    50: '#6565a0',
    500: '#162d79',
    950: '#000000',
  },
}
SCSS
$custom: #162d79;
$custom-light: #6565a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162d79",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 226.061,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33288,
    "c": 0.13271,
    "h": 266.2
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#162D79
secondary
#AE943D
accent
#C33CEC
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D79

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

Preview Lab → · Contrast checker → · Palette generator →

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