#162E7F#162E7F

#162E7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.140 H 266.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#162E7F
RGBrgb(22, 46, 127)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 83%, 50%)
CMYKcmyk(82.7%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.50, 23.09, -48.27)
CIE-LCHlch(22.50, 53.51, 295.57°)
OKLaboklab(34.07% -0.0094 -0.1396)
OKLCHoklch(34.07% 0.14 266.1)
XYZxyz(5.1373, 3.6563, 20.5095)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E7F #7F6716
analogous
#16637F #162E7F #33167F
triadic
#162E7F #7F162E #2E7F16
tetradic
#162E7F #7F1663 #7F6716 #167F33
square
#162E7F #7F1663 #7F6716 #167F33
split-complementary
#162E7F #7F3316 #637F16
monochromatic
#05091A #0D1B4B #162E7F #1F41B3 #345ADC

Accessibility & contrast

On white

12.13
#162E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162E7F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E7F#FFFFFF#000000##FFFFFF
##162E7F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #162e7f;
/* rgb */ color: rgb(22, 46, 127);
/* oklch */ color: oklch(34.1% 0.140 266.1);
Tailwind
colors: {
  custom: {
    50: '#6766a5',
    500: '#162e7f',
    950: '#000000',
  },
}
SCSS
$custom: #162e7f;
$custom-light: #6766a5;
$custom-dark: #000000;
JSON
{
  "hex": "#162e7f",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 226.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34067,
    "c": 0.13994,
    "h": 266.1
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #162E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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