#162E7E#162E7E

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

Color values

HEX#162E7E
RGBrgb(22, 46, 126)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 83%, 49%)
CMYKcmyk(82.5%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.41, 22.69, -47.78)
CIE-LCHlch(22.41, 52.90, 295.40°)
OKLaboklab(33.97% -0.0094 -0.1382)
OKLCHoklch(33.97% 0.139 266.1)
XYZxyz(5.0724, 3.6303, 20.1680)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E7E #7E6616
analogous
#16627E #162E7E #32167E
triadic
#162E7E #7E162E #2E7E16
tetradic
#162E7E #7E1662 #7E6616 #167E32
square
#162E7E #7E1662 #7E6616 #167E32
split-complementary
#162E7E #7E3216 #627E16
monochromatic
#050A1A #0D1B4A #162E7E #1F41B2 #335ADB

Accessibility & contrast

On white

12.17
#162E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#162E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E7E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E7E#FFFFFF#000000##FFFFFF
##162E7E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162e7e;
/* rgb */ color: rgb(22, 46, 126);
/* oklch */ color: oklch(34.0% 0.139 266.1);
Tailwind
colors: {
  custom: {
    50: '#6766a4',
    500: '#162e7e',
    950: '#000000',
  },
}
SCSS
$custom: #162e7e;
$custom-light: #6766a4;
$custom-dark: #000000;
JSON
{
  "hex": "#162e7e",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 226.154,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33971,
    "c": 0.13853,
    "h": 266.1
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#162E7E
secondary
#B3983D
accent
#C43BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #162E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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