#162A8A#162A8A

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

Color values

HEX#162A8A
RGBrgb(22, 42, 138)
HSLhsl(230, 73%, 31%)
HSVhsv(230, 84%, 54%)
CMYKcmyk(84.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(22.52, 30.20, -55.14)
CIE-LCHlch(22.52, 62.87, 298.71°)
OKLaboklab(34.4% -0.0076 -0.1598)
OKLCHoklch(34.4% 0.16 267.3)
XYZxyz(5.7447, 3.6608, 24.4437)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A8A #8A7616
analogous
#16648A #162A8A #3C168A
triadic
#162A8A #8A162A #2A8A16
tetradic
#162A8A #8A1664 #8A7616 #168A3C
square
#162A8A #8A1664 #8A7616 #168A3C
split-complementary
#162A8A #8A3C16 #648A16
monochromatic
#050A20 #0E1A55 #162A8A #1E3ABF #3B57E0

Accessibility & contrast

On white

12.12
#162A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A8A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A8A#FFFFFF#000000##FFFFFF
##162A8A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162a8a;
/* rgb */ color: rgb(22, 42, 138);
/* oklch */ color: oklch(34.4% 0.160 267.3);
Tailwind
colors: {
  custom: {
    50: '#6a63ad',
    500: '#162a8a',
    950: '#000000',
  },
}
SCSS
$custom: #162a8a;
$custom-light: #6a63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#162a8a",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 229.655,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34404,
    "c": 0.15995,
    "h": 267.3
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#162A8A
secondary
#BEA83E
accent
#D039EF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #162A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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