#162A4F#162A4F

#162A4F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.073 H 261.6°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#162A4F
RGBrgb(22, 42, 79)
HSLhsl(219, 56%, 20%)
HSVhsv(219, 72%, 31%)
CMYKcmyk(72.2%, 46.8%, 0%, 69%)
CIE-LABlab(17.42, 6.02, -25.17)
CIE-LCHlch(17.42, 25.88, 283.46°)
OKLaboklab(29% -0.0106 -0.0718)
OKLCHoklch(29% 0.073 261.6)
XYZxyz(2.5696, 2.3908, 7.7217)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A4F #4F3B16
analogous
#16474F #162A4F #1E164F
triadic
#162A4F #4F162A #2A4F16
tetradic
#162A4F #4F1647 #4F3B16 #164F1E
square
#162A4F #4F1647 #4F3B16 #164F1E
split-complementary
#162A4F #4F1E16 #474F16
monochromatic
#070D18 #09111F #162A4F #23437F #315DAF

Accessibility & contrast

On white

14.21
#162A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#162A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A4F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A4F#FFFFFF#000000##FFFFFF
##162A4F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E50
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162a4f;
/* rgb */ color: rgb(22, 42, 79);
/* oklch */ color: oklch(29.0% 0.073 261.6);
Tailwind
colors: {
  custom: {
    50: '#5a6380',
    500: '#162a4f',
    950: '#000000',
  },
}
SCSS
$custom: #162a4f;
$custom-light: #5a6380;
$custom-dark: #000000;
JSON
{
  "hex": "#162a4f",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 218.947,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29,
    "c": 0.07259,
    "h": 261.6
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#162A4F
secondary
#866C3A
accent
#AB48E0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #162A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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