#172D58#172D58

#172D58 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.5% C 0.082 H 262.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#172D58
RGBrgb(23, 45, 88)
HSLhsl(220, 59%, 22%)
HSVhsv(220, 74%, 35%)
CMYKcmyk(73.9%, 48.9%, 0%, 65.5%)
CIE-LABlab(19.07, 7.77, -28.56)
CIE-LCHlch(19.07, 29.60, 285.22°)
OKLaboklab(30.49% -0.0111 -0.0817)
OKLCHoklch(30.49% 0.082 262.3)
XYZxyz(3.0526, 2.7632, 9.6031)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D58 #584217
analogous
#174E58 #172D58 #211758
triadic
#172D58 #58172D #2D5817
tetradic
#172D58 #58174E #584217 #175821
square
#172D58 #58174E #584217 #175821
split-complementary
#172D58 #582117 #4E5817
monochromatic
#060C18 #0A1427 #172D58 #244689 #305FB9

Accessibility & contrast

On white

13.52
#172D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D58
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D58#FFFFFF#000000##FFFFFF
##172D581.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18315A
Deuteranopia (green-blind)
#0B2C57
Tritanopia (blue-blind)
#00373E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172d58;
/* rgb */ color: rgb(23, 45, 88);
/* oklch */ color: oklch(30.5% 0.082 262.3);
Tailwind
colors: {
  custom: {
    50: '#5d6587',
    500: '#172d58',
    950: '#000000',
  },
}
SCSS
$custom: #172d58;
$custom-light: #5d6587;
$custom-dark: #000000;
JSON
{
  "hex": "#172d58",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 88
  },
  "hsl": {
    "h": 219.692,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30488,
    "c": 0.08246,
    "h": 262.3
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#172D58
secondary
#8F733C
accent
#AD46E2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172D58

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

Preview Lab → · Contrast checker → · Palette generator →

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