#162A6D#162A6D

#162A6D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.119 H 266.7°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#162A6D
RGBrgb(22, 42, 109)
HSLhsl(226, 66%, 26%)
HSVhsv(226, 80%, 43%)
CMYKcmyk(79.8%, 61.5%, 0%, 57.3%)
CIE-LABlab(19.76, 18.58, -41.23)
CIE-LCHlch(19.76, 45.22, 294.25°)
OKLaboklab(31.53% -0.007 -0.119)
OKLCHoklch(31.53% 0.119 266.7)
XYZxyz(3.9182, 2.9302, 14.8241)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A6D #6D5916
analogous
#16556D #162A6D #2D166D
triadic
#162A6D #6D162A #2A6D16
tetradic
#162A6D #6D1655 #6D5916 #166D2D
square
#162A6D #6D1655 #6D5916 #166D2D
split-complementary
#162A6D #6D2D16 #556D16
monochromatic
#050A19 #0C163A #162A6D #203EA0 #2B51D3

Accessibility & contrast

On white

13.24
#162A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#162A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A6D
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A6D#FFFFFF#000000##FFFFFF
##162A6D1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162a6d;
/* rgb */ color: rgb(22, 42, 109);
/* oklch */ color: oklch(31.5% 0.119 266.7);
Tailwind
colors: {
  custom: {
    50: '#626397',
    500: '#162a6d',
    950: '#000000',
  },
}
SCSS
$custom: #162a6d;
$custom-light: #626397;
$custom-dark: #000000;
JSON
{
  "hex": "#162a6d",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 226.207,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31526,
    "c": 0.11924,
    "h": 266.7
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#162A6D
secondary
#A38B3C
accent
#C23EE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #162A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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