#162F7E#162F7E

#162F7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.137 H 265.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#162F7E
RGBrgb(22, 47, 126)
HSLhsl(226, 70%, 29%)
HSVhsv(226, 83%, 49%)
CMYKcmyk(82.5%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.69, 21.98, -47.33)
CIE-LCHlch(22.69, 52.19, 294.91°)
OKLaboklab(34.18% -0.0101 -0.1369)
OKLCHoklch(34.18% 0.137 265.8)
XYZxyz(5.1120, 3.7094, 20.1812)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F7E #7E6516
analogous
#16637E #162F7E #31167E
triadic
#162F7E #7E162F #2F7E16
tetradic
#162F7E #7E1663 #7E6516 #167E31
square
#162F7E #7E1663 #7E6516 #167E31
split-complementary
#162F7E #7E3116 #637E16
monochromatic
#050A1A #0D1C4A #162F7E #1F42B2 #335BDB

Accessibility & contrast

On white

12.06
#162F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#162F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F7E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F7E#FFFFFF#000000##FFFFFF
##162F7E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.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: #162f7e;
/* rgb */ color: rgb(22, 47, 126);
/* oklch */ color: oklch(34.2% 0.137 265.8);
Tailwind
colors: {
  custom: {
    50: '#6767a4',
    500: '#162f7e',
    950: '#000000',
  },
}
SCSS
$custom: #162f7e;
$custom-light: #6767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#162f7e",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 225.577,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.13724,
    "h": 265.8
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#162F7E
secondary
#B3973D
accent
#C23BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #162F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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