#172D4C#172D4C

#172D4C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.6% C 0.063 H 257.2°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#172D4C
RGBrgb(23, 45, 76)
HSLhsl(215, 54%, 19%)
HSVhsv(215, 70%, 30%)
CMYKcmyk(69.7%, 40.8%, 0%, 70.2%)
CIE-LABlab(18.28, 2.82, -21.77)
CIE-LCHlch(18.28, 21.95, 277.38°)
OKLaboklab(29.62% -0.014 -0.0618)
OKLCHoklch(29.62% 0.063 257.2)
XYZxyz(2.5958, 2.5805, 7.1974)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D4C #4C3617
analogous
#17484C #172D4C #1C174C
triadic
#172D4C #4C172D #2D4C17
tetradic
#172D4C #4C1748 #4C3617 #174C1C
square
#172D4C #4C1748 #4C3617 #174C1C
split-complementary
#172D4C #4C1C17 #484C17
monochromatic
#070E17 #09111D #172D4C #25497B #3365AA

Accessibility & contrast

On white

13.85
#172D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D4C
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D4C#FFFFFF#000000##FFFFFF
##172D4C1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202F4D
Deuteranopia (green-blind)
#182A4B
Tritanopia (blue-blind)
#003438
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172d4c;
/* rgb */ color: rgb(23, 45, 76);
/* oklch */ color: oklch(29.6% 0.063 257.2);
Tailwind
colors: {
  custom: {
    50: '#5a657e',
    500: '#172d4c',
    950: '#000000',
  },
}
SCSS
$custom: #172d4c;
$custom-light: #5a657e;
$custom-dark: #000000;
JSON
{
  "hex": "#172d4c",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 76
  },
  "hsl": {
    "h": 215.094,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.06334,
    "h": 257.2
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#172D4C
secondary
#83653C
accent
#A04BDD
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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