#162F8A#162F8A

#162F8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.154 H 266.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#162F8A
RGBrgb(22, 47, 138)
HSLhsl(227, 73%, 31%)
HSVhsv(227, 84%, 54%)
CMYKcmyk(84.1%, 65.9%, 0%, 45.9%)
CIE-LABlab(23.80, 26.81, -53.04)
CIE-LCHlch(23.80, 59.43, 296.81°)
OKLaboklab(35.34% -0.0101 -0.1536)
OKLCHoklch(35.34% 0.154 266.2)
XYZxyz(5.9332, 4.0379, 24.5065)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F8A #8A7116
analogous
#16698A #162F8A #37168A
triadic
#162F8A #8A162F #2F8A16
tetradic
#162F8A #8A1669 #8A7116 #168A37
square
#162F8A #8A1669 #8A7116 #168A37
split-complementary
#162F8A #8A3716 #698A16
monochromatic
#050B20 #0E1D55 #162F8A #1E41BF #3B5EE0

Accessibility & contrast

On white

11.62
#162F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#162F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F8A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F8A#FFFFFF#000000##FFFFFF
##162F8A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162f8a;
/* rgb */ color: rgb(22, 47, 138);
/* oklch */ color: oklch(35.3% 0.154 266.2);
Tailwind
colors: {
  custom: {
    50: '#6a67ad',
    500: '#162f8a',
    950: '#000000',
  },
}
SCSS
$custom: #162f8a;
$custom-light: #6a67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#162f8a",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 227.069,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35341,
    "c": 0.15393,
    "h": 266.2
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#162F8A
secondary
#BEA23E
accent
#C839EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #162F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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