#162C84#162C84

#162C84 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.149 H 266.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#162C84
RGBrgb(22, 44, 132)
HSLhsl(228, 71%, 30%)
HSVhsv(228, 83%, 52%)
CMYKcmyk(83.3%, 66.7%, 0%, 48.2%)
CIE-LABlab(22.43, 26.49, -51.52)
CIE-LCHlch(22.43, 57.94, 297.21°)
OKLaboklab(34.16% -0.0083 -0.1492)
OKLCHoklch(34.16% 0.149 266.8)
XYZxyz(5.3950, 3.6372, 22.2430)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C84 #846E16
analogous
#166384 #162C84 #371684
triadic
#162C84 #84162C #2C8416
tetradic
#162C84 #841663 #846E16 #168437
square
#162C84 #841663 #846E16 #168437
split-complementary
#162C84 #843716 #638416
monochromatic
#05091B #0D1B50 #162C84 #1F3DB8 #3758DE

Accessibility & contrast

On white

12.16
#162C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#162C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C84
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C84#FFFFFF#000000##FFFFFF
##162C841.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162c84;
/* rgb */ color: rgb(22, 44, 132);
/* oklch */ color: oklch(34.2% 0.149 266.8);
Tailwind
colors: {
  custom: {
    50: '#6965a9',
    500: '#162c84',
    950: '#000000',
  },
}
SCSS
$custom: #162c84;
$custom-light: #6965a9;
$custom-dark: #000000;
JSON
{
  "hex": "#162c84",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 228,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34162,
    "c": 0.14942,
    "h": 266.8
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#162C84
secondary
#B8A03D
accent
#CA3AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070510
muted
#7A7A7F

Preview Lab

Preview with #162C84

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

Preview Lab → · Contrast checker → · Palette generator →

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