#162B7D#162B7D

#162B7D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.141 H 266.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#162B7D
RGBrgb(22, 43, 125)
HSLhsl(228, 70%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(82.4%, 65.6%, 0%, 51%)
CIE-LABlab(21.50, 24.39, -48.64)
CIE-LCHlch(21.50, 54.41, 296.63°)
OKLaboklab(33.27% -0.0076 -0.1407)
OKLCHoklch(33.27% 0.141 266.9)
XYZxyz(4.8951, 3.3784, 19.7922)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162B7D #7D6816
analogous
#165F7D #162B7D #35167D
triadic
#162B7D #7D162B #2B7D16
tetradic
#162B7D #7D165F #7D6816 #167D35
square
#162B7D #7D165F #7D6816 #167D35
split-complementary
#162B7D #7D3516 #5F7D16
monochromatic
#05091A #0D1949 #162B7D #1F3DB1 #3255DB

Accessibility & contrast

On white

12.53
#162B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#162B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162B7D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162B7D#FFFFFF#000000##FFFFFF
##162B7D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162b7d;
/* rgb */ color: rgb(22, 43, 125);
/* oklch */ color: oklch(33.3% 0.141 266.9);
Tailwind
colors: {
  custom: {
    50: '#6764a3',
    500: '#162b7d',
    950: '#000000',
  },
}
SCSS
$custom: #162b7d;
$custom-light: #6764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162b7d",
  "rgb": {
    "r": 22,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 227.767,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33269,
    "c": 0.14095,
    "h": 266.9
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#162B7D
secondary
#B29A3D
accent
#C93BED
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #162B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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