#162D6B#162D6B

#162D6B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.0% C 0.112 H 265.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#162D6B
RGBrgb(22, 45, 107)
HSLhsl(224, 66%, 25%)
HSVhsv(224, 79%, 42%)
CMYKcmyk(79.4%, 57.9%, 0%, 58%)
CIE-LABlab(20.47, 15.57, -38.78)
CIE-LCHlch(20.47, 41.79, 291.88°)
OKLaboklab(32.01% -0.0095 -0.1118)
OKLCHoklch(32.01% 0.112 265.2)
XYZxyz(3.9222, 3.1084, 14.3003)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D6B #6B5416
analogous
#16576B #162D6B #2A166B
triadic
#162D6B #6B162D #2D6B16
tetradic
#162D6B #6B1657 #6B5416 #166B2A
square
#162D6B #6B1657 #6B5416 #166B2A
split-complementary
#162D6B #6B2A16 #576B16
monochromatic
#050B19 #0C1838 #162D6B #20429E #2B58D1

Accessibility & contrast

On white

12.95
#162D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#162D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D6B
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D6B#FFFFFF#000000##FFFFFF
##162D6B1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#003C47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162d6b;
/* rgb */ color: rgb(22, 45, 107);
/* oklch */ color: oklch(32.0% 0.112 265.2);
Tailwind
colors: {
  custom: {
    50: '#616596',
    500: '#162d6b',
    950: '#000000',
  },
}
SCSS
$custom: #162d6b;
$custom-light: #616596;
$custom-dark: #000000;
JSON
{
  "hex": "#162d6b",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 107
  },
  "hsl": {
    "h": 223.765,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.11218,
    "h": 265.2
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#162D6B
secondary
#A1863B
accent
#BB3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #162D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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