#162E7D#162E7D

#162E7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.137 H 266.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#162E7D
RGBrgb(22, 46, 125)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 82%, 49%)
CMYKcmyk(82.4%, 63.2%, 0%, 51%)
CIE-LABlab(22.32, 22.28, -47.30)
CIE-LCHlch(22.32, 52.29, 295.23°)
OKLaboklab(33.88% -0.0094 -0.1368)
OKLCHoklch(33.88% 0.137 266.1)
XYZxyz(5.0082, 3.6046, 19.8299)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E7D #7D6516
analogous
#16627D #162E7D #32167D
triadic
#162E7D #7D162E #2E7D16
tetradic
#162E7D #7D1662 #7D6516 #167D32
square
#162E7D #7D1662 #7D6516 #167D32
split-complementary
#162E7D #7D3216 #627D16
monochromatic
#050A1A #0D1B49 #162E7D #1F41B1 #325ADB

Accessibility & contrast

On white

12.20
#162E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#162E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E7D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E7D#FFFFFF#000000##FFFFFF
##162E7D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #162e7d;
/* rgb */ color: rgb(22, 46, 125);
/* oklch */ color: oklch(33.9% 0.137 266.1);
Tailwind
colors: {
  custom: {
    50: '#6666a3',
    500: '#162e7d',
    950: '#000000',
  },
}
SCSS
$custom: #162e7d;
$custom-light: #6666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#162e7d",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 226.019,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33876,
    "c": 0.13712,
    "h": 266.1
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#162E7D
secondary
#B2973D
accent
#C33BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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