#162D7B#162D7B

#162D7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.136 H 266.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#162D7B
RGBrgb(22, 45, 123)
HSLhsl(226, 70%, 28%)
HSVhsv(226, 82%, 48%)
CMYKcmyk(82.1%, 63.4%, 0%, 51.8%)
CIE-LABlab(21.86, 22.18, -46.78)
CIE-LCHlch(21.86, 51.77, 295.36°)
OKLaboklab(33.48% -0.0088 -0.1353)
OKLCHoklch(33.48% 0.136 266.3)
XYZxyz(4.8432, 3.4768, 19.1509)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D7B #7B6416
analogous
#165F7B #162D7B #32167B
triadic
#162D7B #7B162D #2D7B16
tetradic
#162D7B #7B165F #7B6416 #167B32
square
#162D7B #7B165F #7B6416 #167B32
split-complementary
#162D7B #7B3216 #5F7B16
monochromatic
#05091A #0D1A47 #162D7B #1F40AF #3158DA

Accessibility & contrast

On white

12.39
#162D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#162D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D7B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D7B#FFFFFF#000000##FFFFFF
##162D7B1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162d7b;
/* rgb */ color: rgb(22, 45, 123);
/* oklch */ color: oklch(33.5% 0.136 266.3);
Tailwind
colors: {
  custom: {
    50: '#6665a2',
    500: '#162d7b',
    950: '#000000',
  },
}
SCSS
$custom: #162d7b;
$custom-light: #6665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#162d7b",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 226.337,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33479,
    "c": 0.13557,
    "h": 266.3
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#162D7B
secondary
#B0963D
accent
#C43BEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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