#162E8A#162E8A

#162E8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.155 H 266.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#162E8A
RGBrgb(22, 46, 138)
HSLhsl(228, 73%, 31%)
HSVhsv(228, 84%, 54%)
CMYKcmyk(84.1%, 66.7%, 0%, 45.9%)
CIE-LABlab(23.53, 27.49, -53.47)
CIE-LCHlch(23.53, 60.13, 297.21°)
OKLaboklab(35.15% -0.0096 -0.1549)
OKLCHoklch(35.15% 0.155 266.4)
XYZxyz(5.8937, 3.9588, 24.4933)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E8A #8A7216
analogous
#16688A #162E8A #38168A
triadic
#162E8A #8A162E #2E8A16
tetradic
#162E8A #8A1668 #8A7216 #168A38
square
#162E8A #8A1668 #8A7216 #168A38
split-complementary
#162E8A #8A3816 #688A16
monochromatic
#050B20 #0E1C55 #162E8A #1E40BF #3B5DE0

Accessibility & contrast

On white

11.72
#162E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#162E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E8A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E8A#FFFFFF#000000##FFFFFF
##162E8A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #162e8a;
/* rgb */ color: rgb(22, 46, 138);
/* oklch */ color: oklch(35.1% 0.155 266.4);
Tailwind
colors: {
  custom: {
    50: '#6a66ad',
    500: '#162e8a',
    950: '#000000',
  },
}
SCSS
$custom: #162e8a;
$custom-light: #6a66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#162e8a",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 227.586,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35149,
    "c": 0.15516,
    "h": 266.4
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#162E8A
secondary
#BEA33E
accent
#C939EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #162E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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