#172F59#172F59

#172F59 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.081 H 260.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#172F59
RGBrgb(23, 47, 89)
HSLhsl(218, 59%, 22%)
HSVhsv(218, 74%, 35%)
CMYKcmyk(74.2%, 47.2%, 0%, 65.1%)
CIE-LABlab(19.79, 6.73, -28.08)
CIE-LCHlch(19.79, 28.87, 283.49°)
OKLaboklab(31.06% -0.0131 -0.0802)
OKLCHoklch(31.06% 0.081 260.7)
XYZxyz(3.1724, 2.9361, 9.8488)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F59 #594117
analogous
#175059 #172F59 #201759
triadic
#172F59 #59172F #2F5917
tetradic
#172F59 #591750 #594117 #175920
square
#172F59 #591750 #594117 #175920
split-complementary
#172F59 #592017 #505917
monochromatic
#060D18 #0A1528 #172F59 #24498A #3062BA

Accessibility & contrast

On white

13.23
#172F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F59
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F59#FFFFFF#000000##FFFFFF
##172F591.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335B
Deuteranopia (green-blind)
#0F2D58
Tritanopia (blue-blind)
#00393F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172f59;
/* rgb */ color: rgb(23, 47, 89);
/* oklch */ color: oklch(31.1% 0.081 260.7);
Tailwind
colors: {
  custom: {
    50: '#5d6788',
    500: '#172f59',
    950: '#000000',
  },
}
SCSS
$custom: #172f59;
$custom-light: #5d6788;
$custom-dark: #000000;
JSON
{
  "hex": "#172f59",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 89
  },
  "hsl": {
    "h": 218.182,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31062,
    "c": 0.08131,
    "h": 260.7
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#172F59
secondary
#90713C
accent
#A946E2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #172F59

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

Preview Lab → · Contrast checker → · Palette generator →

#172F59 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva