#162C8A#162C8A

#162C8A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.158 H 266.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#162C8A
RGBrgb(22, 44, 138)
HSLhsl(229, 73%, 31%)
HSVhsv(229, 84%, 54%)
CMYKcmyk(84.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(23.02, 28.86, -54.32)
CIE-LCHlch(23.02, 61.51, 297.98°)
OKLaboklab(34.77% -0.0086 -0.1573)
OKLCHoklch(34.77% 0.158 266.9)
XYZxyz(5.8174, 3.8062, 24.4679)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162C8A #8A7416
analogous
#16668A #162C8A #3A168A
triadic
#162C8A #8A162C #2C8A16
tetradic
#162C8A #8A1666 #8A7416 #168A3A
square
#162C8A #8A1666 #8A7416 #168A3A
split-complementary
#162C8A #8A3A16 #668A16
monochromatic
#050A20 #0E1B55 #162C8A #1E3DBF #3B5AE0

Accessibility & contrast

On white

11.92
#162C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#162C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162C8A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162C8A#FFFFFF#000000##FFFFFF
##162C8A1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #162c8a;
/* rgb */ color: rgb(22, 44, 138);
/* oklch */ color: oklch(34.8% 0.158 266.9);
Tailwind
colors: {
  custom: {
    50: '#6a65ad',
    500: '#162c8a',
    950: '#000000',
  },
}
SCSS
$custom: #162c8a;
$custom-light: #6a65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#162c8a",
  "rgb": {
    "r": 22,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 228.621,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.15757,
    "h": 266.9
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#162C8A
secondary
#BEA63E
accent
#CD39EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #162C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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