#162A4C#162A4C

#162A4C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.068 H 260.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#162A4C
RGBrgb(22, 42, 76)
HSLhsl(218, 55%, 19%)
HSVhsv(218, 71%, 30%)
CMYKcmyk(71.1%, 44.7%, 0%, 70.2%)
CIE-LABlab(17.22, 4.78, -23.45)
CIE-LCHlch(17.22, 23.94, 281.52°)
OKLaboklab(28.78% -0.0113 -0.0668)
OKLCHoklch(28.78% 0.068 260.4)
XYZxyz(2.4629, 2.3481, 7.1595)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A4C #4C3816
analogous
#16454C #162A4C #1D164C
triadic
#162A4C #4C162A #2A4C16
tetradic
#162A4C #4C1645 #4C3816 #164C1D
square
#162A4C #4C1645 #4C3816 #164C1D
split-complementary
#162A4C #4C1D16 #454C16
monochromatic
#070D18 #08101D #162A4C #24447B #315EAB

Accessibility & contrast

On white

14.29
#162A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #162A4C
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A4C#FFFFFF#000000##FFFFFF
##162A4C1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4D
Deuteranopia (green-blind)
#13284B
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #162a4c;
/* rgb */ color: rgb(22, 42, 76);
/* oklch */ color: oklch(28.8% 0.068 260.4);
Tailwind
colors: {
  custom: {
    50: '#5a637e',
    500: '#162a4c',
    950: '#000000',
  },
}
SCSS
$custom: #162a4c;
$custom-light: #5a637e;
$custom-dark: #000000;
JSON
{
  "hex": "#162a4c",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 217.778,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28781,
    "c": 0.06774,
    "h": 260.4
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#162A4C
secondary
#84683A
accent
#A749DE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #162A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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