#162A57#162A57

#162A57 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.085 H 263.9°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#162A57
RGBrgb(22, 42, 87)
HSLhsl(222, 60%, 21%)
HSVhsv(222, 75%, 34%)
CMYKcmyk(74.7%, 51.7%, 0%, 65.9%)
CIE-LABlab(17.98, 9.37, -29.64)
CIE-LCHlch(17.98, 31.09, 287.55°)
OKLaboklab(29.62% -0.0091 -0.085)
OKLCHoklch(29.62% 0.085 263.9)
XYZxyz(2.8785, 2.5143, 9.3486)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162A57 #574316
analogous
#164B57 #162A57 #231657
triadic
#162A57 #57162A #2A5716
tetradic
#162A57 #57164B #574316 #165723
square
#162A57 #57164B #574316 #165723
split-complementary
#162A57 #572316 #4B5716
monochromatic
#060C18 #0A1226 #162A57 #224288 #2F59B9

Accessibility & contrast

On white

13.97
#162A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#162A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162A57
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162A57#FFFFFF#000000##FFFFFF
##162A571.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F59
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #162a57;
/* rgb */ color: rgb(22, 42, 87);
/* oklch */ color: oklch(29.6% 0.085 263.9);
Tailwind
colors: {
  custom: {
    50: '#5c6387',
    500: '#162a57',
    950: '#000000',
  },
}
SCSS
$custom: #162a57;
$custom-light: #5c6387;
$custom-dark: #000000;
JSON
{
  "hex": "#162a57",
  "rgb": {
    "r": 22,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 221.538,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29618,
    "c": 0.08544,
    "h": 263.9
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#162A57
secondary
#8E753A
accent
#B245E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #162A57

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

Preview Lab → · Contrast checker → · Palette generator →

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