#162D84#162D84

#162D84 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.148 H 266.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#162D84
RGBrgb(22, 45, 132)
HSLhsl(227, 71%, 30%)
HSVhsv(227, 83%, 52%)
CMYKcmyk(83.3%, 65.9%, 0%, 48.2%)
CIE-LABlab(22.70, 25.80, -51.09)
CIE-LCHlch(22.70, 57.24, 296.79°)
OKLaboklab(34.36% -0.0089 -0.1479)
OKLCHoklch(34.36% 0.148 266.6)
XYZxyz(5.4327, 3.7126, 22.2556)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D84 #846D16
analogous
#166484 #162D84 #361684
triadic
#162D84 #84162D #2D8416
tetradic
#162D84 #841664 #846D16 #168436
square
#162D84 #841664 #846D16 #168436
split-complementary
#162D84 #843616 #648416
monochromatic
#05091B #0D1B50 #162D84 #1F3FB8 #375ADE

Accessibility & contrast

On white

12.05
#162D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162D84
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D84#FFFFFF#000000##FFFFFF
##162D841.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162d84;
/* rgb */ color: rgb(22, 45, 132);
/* oklch */ color: oklch(34.4% 0.148 266.6);
Tailwind
colors: {
  custom: {
    50: '#6865a9',
    500: '#162d84',
    950: '#000000',
  },
}
SCSS
$custom: #162d84;
$custom-light: #6865a9;
$custom-dark: #000000;
JSON
{
  "hex": "#162d84",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 227.455,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34357,
    "c": 0.14818,
    "h": 266.6
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#162D84
secondary
#B89F3D
accent
#C83AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070510
muted
#7A7A7F

Preview Lab

Preview with #162D84

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

Preview Lab → · Contrast checker → · Palette generator →

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