#162A4D#162A4D

#162A4D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.069 H 260.8°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#162A4D
RGBrgb(22, 42, 77)
HSLhsl(218, 56%, 19%)
HSVhsv(218, 71%, 30%)
CMYKcmyk(71.4%, 45.5%, 0%, 69.8%)
CIE-LABlab(17.28, 5.19, -24.03)
CIE-LCHlch(17.28, 24.58, 282.20°)
OKLaboklab(28.85% -0.0111 -0.0685)
OKLCHoklch(28.85% 0.069 260.8)
XYZxyz(2.4979, 2.3621, 7.3440)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A4D #4D3916
analogous
#16464D #162A4D #1E164D
triadic
#162A4D #4D162A #2A4D16
tetradic
#162A4D #4D1646 #4D3916 #164D1E
square
#162A4D #4D1646 #4D3916 #164D1E
split-complementary
#162A4D #4D1E16 #464D16
monochromatic
#070D18 #08101D #162A4D #24447D #315EAC

Accessibility & contrast

On white

14.26
#162A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#162A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A4D
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A4D#FFFFFF#000000##FFFFFF
##162A4D1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #162a4d;
/* rgb */ color: rgb(22, 42, 77);
/* oklch */ color: oklch(28.9% 0.069 260.8);
Tailwind
colors: {
  custom: {
    50: '#5a637f',
    500: '#162a4d',
    950: '#000000',
  },
}
SCSS
$custom: #162a4d;
$custom-light: #5a637f;
$custom-dark: #000000;
JSON
{
  "hex": "#162a4d",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 77
  },
  "hsl": {
    "h": 218.182,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28853,
    "c": 0.06935,
    "h": 260.8
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#162A4D
secondary
#856A3A
accent
#A849DF
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #162A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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