#162A54#162A54

#162A54 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.081 H 263.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#162A54
RGBrgb(22, 42, 84)
HSLhsl(221, 58%, 21%)
HSVhsv(221, 74%, 33%)
CMYKcmyk(73.8%, 50%, 0%, 67.1%)
CIE-LABlab(17.77, 8.11, -27.98)
CIE-LCHlch(17.77, 29.13, 286.17°)
OKLaboklab(29.38% -0.0096 -0.0801)
OKLCHoklch(29.38% 0.081 263.2)
XYZxyz(2.7585, 2.4663, 8.7165)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A54 #544016
analogous
#164954 #162A54 #211654
triadic
#162A54 #54162A #2A5416
tetradic
#162A54 #541649 #544016 #165421
square
#162A54 #541649 #544016 #165421
split-complementary
#162A54 #542116 #495416
monochromatic
#060C18 #091224 #162A54 #234284 #2F5AB5

Accessibility & contrast

On white

14.06
#162A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#162A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A54
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A54#FFFFFF#000000##FFFFFF
##162A541.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152F56
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162a54;
/* rgb */ color: rgb(22, 42, 84);
/* oklch */ color: oklch(29.4% 0.081 263.2);
Tailwind
colors: {
  custom: {
    50: '#5c6384',
    500: '#162a54',
    950: '#000000',
  },
}
SCSS
$custom: #162a54;
$custom-light: #5c6384;
$custom-dark: #000000;
JSON
{
  "hex": "#162a54",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 84
  },
  "hsl": {
    "h": 220.645,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29381,
    "c": 0.08064,
    "h": 263.2
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#162A54
secondary
#8B713A
accent
#B046E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #162A54

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

Preview Lab → · Contrast checker → · Palette generator →

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