#172D4F#172D4F

#172D4F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.068 H 258.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#172D4F
RGBrgb(23, 45, 79)
HSLhsl(216, 55%, 20%)
HSVhsv(216, 71%, 31%)
CMYKcmyk(70.9%, 43%, 0%, 69%)
CIE-LABlab(18.47, 4.04, -23.49)
CIE-LCHlch(18.47, 23.84, 279.77°)
OKLaboklab(29.83% -0.0132 -0.0668)
OKLCHoklch(29.83% 0.068 258.8)
XYZxyz(2.7025, 2.6232, 7.7595)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D4F #4F3917
analogous
#17494F #172D4F #1D174F
triadic
#172D4F #4F172D #2D4F17
tetradic
#172D4F #4F1749 #4F3917 #174F1D
square
#172D4F #4F1749 #4F3917 #174F1D
split-complementary
#172D4F #4F1D17 #494F17
monochromatic
#070D18 #091220 #172D4F #25487E #3363AE

Accessibility & contrast

On white

13.77
#172D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D4F
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D4F#FFFFFF#000000##FFFFFF
##172D4F1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3050
Deuteranopia (green-blind)
#162B4E
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172d4f;
/* rgb */ color: rgb(23, 45, 79);
/* oklch */ color: oklch(29.8% 0.068 258.8);
Tailwind
colors: {
  custom: {
    50: '#5b6580',
    500: '#172d4f',
    950: '#000000',
  },
}
SCSS
$custom: #172d4f;
$custom-light: #5b6580;
$custom-dark: #000000;
JSON
{
  "hex": "#172d4f",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 79
  },
  "hsl": {
    "h": 216.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29827,
    "c": 0.06812,
    "h": 258.8
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#172D4F
secondary
#86693C
accent
#A44ADE
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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