#162E7B#162E7B

#162E7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.134 H 266.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#162E7B
RGBrgb(22, 46, 123)
HSLhsl(226, 70%, 28%)
HSVhsv(226, 82%, 48%)
CMYKcmyk(82.1%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.14, 21.47, -46.33)
CIE-LCHlch(22.14, 51.06, 294.86°)
OKLaboklab(33.69% -0.0095 -0.1339)
OKLCHoklch(33.69% 0.134 266)
XYZxyz(4.8818, 3.5541, 19.1638)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E7B #7B6316
analogous
#16607B #162E7B #31167B
triadic
#162E7B #7B162E #2E7B16
tetradic
#162E7B #7B1660 #7B6316 #167B31
square
#162E7B #7B1660 #7B6316 #167B31
split-complementary
#162E7B #7B3116 #607B16
monochromatic
#050A1A #0D1B47 #162E7B #1F41AF #3159DA

Accessibility & contrast

On white

12.27
#162E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162E7B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E7B#FFFFFF#000000##FFFFFF
##162E7B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #162e7b;
/* rgb */ color: rgb(22, 46, 123);
/* oklch */ color: oklch(33.7% 0.134 266.0);
Tailwind
colors: {
  custom: {
    50: '#6666a2',
    500: '#162e7b',
    950: '#000000',
  },
}
SCSS
$custom: #162e7b;
$custom-light: #6666a2;
$custom-dark: #000000;
JSON
{
  "hex": "#162e7b",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 225.743,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.13427,
    "h": 266
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#162E7B
secondary
#B0953D
accent
#C23BEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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