#173159#173159

#173159 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.079 H 258.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#173159
RGBrgb(23, 49, 89)
HSLhsl(216, 59%, 22%)
HSVhsv(216, 74%, 35%)
CMYKcmyk(74.2%, 44.9%, 0%, 65.1%)
CIE-LABlab(20.44, 5.29, -27.04)
CIE-LCHlch(20.44, 27.55, 281.08°)
OKLaboklab(31.57% -0.0153 -0.0771)
OKLCHoklch(31.57% 0.079 258.8)
XYZxyz(3.2542, 3.0997, 9.8761)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173159 #593F17
analogous
#175259 #173159 #1E1759
triadic
#173159 #591731 #315917
tetradic
#173159 #591752 #593F17 #17591E
square
#173159 #591752 #593F17 #17591E
split-complementary
#173159 #591E17 #525917
monochromatic
#060D18 #0A1628 #173159 #244C8A #3067BA

Accessibility & contrast

On white

12.96
#173159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#173159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173159
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173159#FFFFFF#000000##FFFFFF
##1731591.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E355B
Deuteranopia (green-blind)
#142E58
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #173159;
/* rgb */ color: rgb(23, 49, 89);
/* oklch */ color: oklch(31.6% 0.079 258.8);
Tailwind
colors: {
  custom: {
    50: '#5d6888',
    500: '#173159',
    950: '#000000',
  },
}
SCSS
$custom: #173159;
$custom-light: #5d6888;
$custom-dark: #000000;
JSON
{
  "hex": "#173159",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 89
  },
  "hsl": {
    "h": 216.364,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31567,
    "c": 0.07865,
    "h": 258.8
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#173159
secondary
#906F3C
accent
#A446E2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #173159

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

Preview Lab → · Contrast checker → · Palette generator →

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