#162A8D#162A8D

#162A8D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.164 H 267.3°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#162A8D
RGBrgb(22, 42, 141)
HSLhsl(230, 73%, 32%)
HSVhsv(230, 84%, 55%)
CMYKcmyk(84.4%, 70.2%, 0%, 44.7%)
CIE-LABlab(22.82, 31.36, -56.51)
CIE-LCHlch(22.82, 64.63, 299.02°)
OKLaboklab(34.72% -0.0079 -0.1637)
OKLCHoklch(34.72% 0.164 267.3)
XYZxyz(5.9649, 3.7489, 25.6034)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A8D #8D7916
analogous
#16668D #162A8D #3E168D
triadic
#162A8D #8D162A #2A8D16
tetradic
#162A8D #8D1666 #8D7916 #168D3E
square
#162A8D #8D1666 #8D7916 #168D3E
split-complementary
#162A8D #8D3E16 #668D16
monochromatic
#050A23 #0E1A58 #162A8D #1E3AC2 #3D58E1

Accessibility & contrast

On white

12.00
#162A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#162A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A8D
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A8D#FFFFFF#000000##FFFFFF
##162A8D1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162a8d;
/* rgb */ color: rgb(22, 42, 141);
/* oklch */ color: oklch(34.7% 0.164 267.3);
Tailwind
colors: {
  custom: {
    50: '#6b63af',
    500: '#162a8d',
    950: '#000000',
  },
}
SCSS
$custom: #162a8d;
$custom-light: #6b63af;
$custom-dark: #000000;
JSON
{
  "hex": "#162a8d",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 229.916,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34719,
    "c": 0.16394,
    "h": 267.3
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#162A8D
secondary
#C1AB3E
accent
#D138F0
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #162A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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