#162E81#162E81

#162E81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.143 H 266.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#162E81
RGBrgb(22, 46, 129)
HSLhsl(227, 71%, 30%)
HSVhsv(227, 83%, 51%)
CMYKcmyk(82.9%, 64.3%, 0%, 49.4%)
CIE-LABlab(22.68, 23.90, -49.23)
CIE-LCHlch(22.68, 54.72, 295.90°)
OKLaboklab(34.26% -0.0094 -0.1424)
OKLCHoklch(34.26% 0.143 266.2)
XYZxyz(5.2689, 3.7089, 21.2028)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E81 #816916
analogous
#166481 #162E81 #341681
triadic
#162E81 #81162E #2E8116
tetradic
#162E81 #811664 #816916 #168134
square
#162E81 #811664 #816916 #168134
split-complementary
#162E81 #813416 #648116
monochromatic
#04091A #0D1B4D #162E81 #1F41B5 #355ADD

Accessibility & contrast

On white

12.06
#162E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#162E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E81
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E81#FFFFFF#000000##FFFFFF
##162E811.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162e81;
/* rgb */ color: rgb(22, 46, 129);
/* oklch */ color: oklch(34.3% 0.143 266.2);
Tailwind
colors: {
  custom: {
    50: '#6766a6',
    500: '#162e81',
    950: '#000000',
  },
}
SCSS
$custom: #162e81;
$custom-light: #6766a6;
$custom-dark: #000000;
JSON
{
  "hex": "#162e81",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 226.542,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.14275,
    "h": 266.2
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#162E81
secondary
#B69B3D
accent
#C53AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162E81

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

Preview Lab → · Contrast checker → · Palette generator →

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