#162D7D#162D7D

#162D7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.138 H 266.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#162D7D
RGBrgb(22, 45, 125)
HSLhsl(227, 70%, 29%)
HSVhsv(227, 82%, 49%)
CMYKcmyk(82.4%, 64%, 0%, 51%)
CIE-LABlab(22.04, 22.99, -47.75)
CIE-LCHlch(22.04, 53.00, 295.71°)
OKLaboklab(33.67% -0.0088 -0.1381)
OKLCHoklch(33.67% 0.138 266.4)
XYZxyz(4.9696, 3.5274, 19.8170)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D7D #7D6616
analogous
#16617D #162D7D #33167D
triadic
#162D7D #7D162D #2D7D16
tetradic
#162D7D #7D1661 #7D6616 #167D33
square
#162D7D #7D1661 #7D6616 #167D33
split-complementary
#162D7D #7D3316 #617D16
monochromatic
#05091A #0D1A49 #162D7D #1F40B1 #3258DB

Accessibility & contrast

On white

12.31
#162D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#162D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D7D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D7D#FFFFFF#000000##FFFFFF
##162D7D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162d7d;
/* rgb */ color: rgb(22, 45, 125);
/* oklch */ color: oklch(33.7% 0.138 266.4);
Tailwind
colors: {
  custom: {
    50: '#6665a3',
    500: '#162d7d',
    950: '#000000',
  },
}
SCSS
$custom: #162d7d;
$custom-light: #6665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162d7d",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 226.602,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33671,
    "c": 0.1384,
    "h": 266.4
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#162D7D
secondary
#B2983D
accent
#C53BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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