#162E79#162E79

#162E79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.131 H 265.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#162E79
RGBrgb(22, 46, 121)
HSLhsl(225, 69%, 28%)
HSVhsv(225, 82%, 47%)
CMYKcmyk(81.8%, 62%, 0%, 52.5%)
CIE-LABlab(21.96, 20.65, -45.35)
CIE-LCHlch(21.96, 49.83, 294.48°)
OKLaboklab(33.5% -0.0095 -0.1311)
OKLCHoklch(33.5% 0.131 265.8)
XYZxyz(4.7578, 3.5045, 18.5111)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E79 #796116
analogous
#165F79 #162E79 #301679
triadic
#162E79 #79162E #2E7916
tetradic
#162E79 #79165F #796116 #167930
square
#162E79 #79165F #796116 #167930
split-complementary
#162E79 #793016 #5F7916
monochromatic
#050A1A #0D1A45 #162E79 #1F42AD #3059D9

Accessibility & contrast

On white

12.35
#162E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E79
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E79#FFFFFF#000000##FFFFFF
##162E791.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162e79;
/* rgb */ color: rgb(22, 46, 121);
/* oklch */ color: oklch(33.5% 0.131 265.8);
Tailwind
colors: {
  custom: {
    50: '#6566a0',
    500: '#162e79',
    950: '#000000',
  },
}
SCSS
$custom: #162e79;
$custom-light: #6566a0;
$custom-dark: #000000;
JSON
{
  "hex": "#162e79",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 225.455,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.1314,
    "h": 265.8
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#162E79
secondary
#AE933D
accent
#C13CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #162E79

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

Preview Lab → · Contrast checker → · Palette generator →

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