#162F7B#162F7B

#162F7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.133 H 265.6°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#162F7B
RGBrgb(22, 47, 123)
HSLhsl(225, 70%, 28%)
HSVhsv(225, 82%, 48%)
CMYKcmyk(82.1%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.42, 20.76, -45.87)
CIE-LCHlch(22.42, 50.35, 294.35°)
OKLaboklab(33.89% -0.0101 -0.1326)
OKLCHoklch(33.89% 0.133 265.6)
XYZxyz(4.9213, 3.6331, 19.1769)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F7B #7B6216
analogous
#16617B #162F7B #30167B
triadic
#162F7B #7B162F #2F7B16
tetradic
#162F7B #7B1661 #7B6216 #167B30
square
#162F7B #7B1661 #7B6216 #167B30
split-complementary
#162F7B #7B3016 #617B16
monochromatic
#050A1A #0D1B47 #162F7B #1F43AF #315BDA

Accessibility & contrast

On white

12.16
#162F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162F7B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F7B#FFFFFF#000000##FFFFFF
##162F7B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162f7b;
/* rgb */ color: rgb(22, 47, 123);
/* oklch */ color: oklch(33.9% 0.133 265.6);
Tailwind
colors: {
  custom: {
    50: '#6667a2',
    500: '#162f7b',
    950: '#000000',
  },
}
SCSS
$custom: #162f7b;
$custom-light: #6667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#162f7b",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 225.149,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33895,
    "c": 0.13297,
    "h": 265.6
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#162F7B
secondary
#B0943D
accent
#C13BEC
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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