#172D6D#172D6D

#172D6D is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.115 H 265.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#172D6D
RGBrgb(23, 45, 109)
HSLhsl(225, 65%, 26%)
HSVhsv(225, 79%, 43%)
CMYKcmyk(78.9%, 58.7%, 0%, 57.3%)
CIE-LABlab(20.68, 16.54, -39.73)
CIE-LCHlch(20.68, 43.03, 292.60°)
OKLaboklab(32.23% -0.0084 -0.1146)
OKLCHoklch(32.23% 0.115 265.8)
XYZxyz(4.0511, 3.1626, 14.8620)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D6D #6D5717
analogous
#17586D #172D6D #2C176D
triadic
#172D6D #6D172D #2D6D17
tetradic
#172D6D #6D1758 #6D5717 #176D2C
square
#172D6D #6D1758 #6D5717 #176D2C
split-complementary
#172D6D #6D2C17 #586D17
monochromatic
#050A19 #0C183A #172D6D #2242A0 #2C57D2

Accessibility & contrast

On white

12.86
#172D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D6D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D6D#FFFFFF#000000##FFFFFF
##172D6D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172d6d;
/* rgb */ color: rgb(23, 45, 109);
/* oklch */ color: oklch(32.2% 0.115 265.8);
Tailwind
colors: {
  custom: {
    50: '#626597',
    500: '#172d6d',
    950: '#000000',
  },
}
SCSS
$custom: #172d6d;
$custom-light: #626597;
$custom-dark: #000000;
JSON
{
  "hex": "#172d6d",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 109
  },
  "hsl": {
    "h": 224.651,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3223,
    "c": 0.11487,
    "h": 265.8
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#172D6D
secondary
#A3893D
accent
#BD40E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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