#162957#162957

#162957 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.087 H 264.7°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#162957
RGBrgb(22, 41, 87)
HSLhsl(222, 60%, 21%)
HSVhsv(222, 75%, 34%)
CMYKcmyk(74.7%, 52.9%, 0%, 65.9%)
CIE-LABlab(17.66, 10.11, -30.15)
CIE-LCHlch(17.66, 31.80, 288.54°)
OKLaboklab(29.37% -0.008 -0.0865)
OKLCHoklch(29.37% 0.087 264.7)
XYZxyz(2.8435, 2.4443, 9.3369)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162957 #574416
analogous
#164A57 #162957 #241657
triadic
#162957 #571629 #295716
tetradic
#162957 #57164A #574416 #165724
square
#162957 #57164A #574416 #165724
split-complementary
#162957 #572416 #4A5716
monochromatic
#060C18 #0A1226 #162957 #224088 #2F57B9

Accessibility & contrast

On white

14.10
#162957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#162957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162957
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162957#FFFFFF#000000##FFFFFF
##1629571.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E59
Deuteranopia (green-blind)
#012856
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #162957;
/* rgb */ color: rgb(22, 41, 87);
/* oklch */ color: oklch(29.4% 0.087 264.7);
Tailwind
colors: {
  custom: {
    50: '#5c6287',
    500: '#162957',
    950: '#000000',
  },
}
SCSS
$custom: #162957;
$custom-light: #5c6287;
$custom-dark: #000000;
JSON
{
  "hex": "#162957",
  "rgb": {
    "r": 22,
    "g": 41,
    "b": 87
  },
  "hsl": {
    "h": 222.462,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29374,
    "c": 0.08685,
    "h": 264.7
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#162957
secondary
#8E763A
accent
#B545E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #162957

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

Preview Lab → · Contrast checker → · Palette generator →

#162957 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva