#162F7D#162F7D

#162F7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.136 H 265.7°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#162F7D
RGBrgb(22, 47, 125)
HSLhsl(225, 70%, 29%)
HSVhsv(225, 82%, 49%)
CMYKcmyk(82.4%, 62.4%, 0%, 51%)
CIE-LABlab(22.60, 21.58, -46.84)
CIE-LCHlch(22.60, 51.57, 294.73°)
OKLaboklab(34.08% -0.0101 -0.1354)
OKLCHoklch(34.08% 0.136 265.7)
XYZxyz(5.0478, 3.6837, 19.8430)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F7D #7D6416
analogous
#16637D #162F7D #31167D
triadic
#162F7D #7D162F #2F7D16
tetradic
#162F7D #7D1663 #7D6416 #167D31
square
#162F7D #7D1663 #7D6416 #167D31
split-complementary
#162F7D #7D3116 #637D16
monochromatic
#050A1A #0D1B49 #162F7D #1F43B1 #325BDB

Accessibility & contrast

On white

12.09
#162F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#162F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F7D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F7D#FFFFFF#000000##FFFFFF
##162F7D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162f7d;
/* rgb */ color: rgb(22, 47, 125);
/* oklch */ color: oklch(34.1% 0.136 265.7);
Tailwind
colors: {
  custom: {
    50: '#6667a3',
    500: '#162f7d',
    950: '#000000',
  },
}
SCSS
$custom: #162f7d;
$custom-light: #6667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162f7d",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 225.437,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34083,
    "c": 0.13582,
    "h": 265.7
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#162F7D
secondary
#B2963D
accent
#C23BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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