#162D7A#162D7A

#162D7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.134 H 266.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#162D7A
RGBrgb(22, 45, 122)
HSLhsl(226, 69%, 28%)
HSVhsv(226, 82%, 48%)
CMYKcmyk(82%, 63.1%, 0%, 52.2%)
CIE-LABlab(21.77, 21.77, -46.29)
CIE-LCHlch(21.77, 51.16, 295.18°)
OKLaboklab(33.38% -0.0088 -0.1339)
OKLCHoklch(33.38% 0.134 266.2)
XYZxyz(4.7809, 3.4519, 18.8229)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D7A #7A6316
analogous
#165F7A #162D7A #31167A
triadic
#162D7A #7A162D #2D7A16
tetradic
#162D7A #7A165F #7A6316 #167A31
square
#162D7A #7A165F #7A6316 #167A31
split-complementary
#162D7A #7A3116 #5F7A16
monochromatic
#050A1A #0D1A46 #162D7A #1F40AE #3158DA

Accessibility & contrast

On white

12.42
#162D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#162D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D7A
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D7A#FFFFFF#000000##FFFFFF
##162D7A1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162d7a;
/* rgb */ color: rgb(22, 45, 122);
/* oklch */ color: oklch(33.4% 0.134 266.2);
Tailwind
colors: {
  custom: {
    50: '#6665a1',
    500: '#162d7a',
    950: '#000000',
  },
}
SCSS
$custom: #162d7a;
$custom-light: #6665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#162d7a",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 226.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33383,
    "c": 0.13415,
    "h": 266.2
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#162D7A
secondary
#AF953D
accent
#C43CEC
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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