#172D6A#172D6A

#172D6A is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.0% C 0.110 H 265.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#172D6A
RGBrgb(23, 45, 106)
HSLhsl(224, 64%, 25%)
HSVhsv(224, 78%, 42%)
CMYKcmyk(78.3%, 57.5%, 0%, 58.4%)
CIE-LABlab(20.44, 15.29, -38.19)
CIE-LCHlch(20.44, 41.13, 291.82°)
OKLaboklab(31.97% -0.0086 -0.11)
OKLCHoklch(31.97% 0.11 265.5)
XYZxyz(3.8923, 3.0991, 14.0259)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D6A #6A5417
analogous
#17576A #172D6A #2A176A
triadic
#172D6A #6A172D #2D6A17
tetradic
#172D6A #6A1757 #6A5417 #176A2A
square
#172D6A #6A1757 #6A5417 #176A2A
split-complementary
#172D6A #6A2A17 #576A17
monochromatic
#050B19 #0C1838 #172D6A #22429C #2D58CF

Accessibility & contrast

On white

12.96
#172D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172D6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D6A
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D6A#FFFFFF#000000##FFFFFF
##172D6A1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#003C46
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172d6a;
/* rgb */ color: rgb(23, 45, 106);
/* oklch */ color: oklch(32.0% 0.110 265.5);
Tailwind
colors: {
  custom: {
    50: '#626595',
    500: '#172d6a',
    950: '#000000',
  },
}
SCSS
$custom: #172d6a;
$custom-light: #626595;
$custom-dark: #000000;
JSON
{
  "hex": "#172d6a",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 106
  },
  "hsl": {
    "h": 224.096,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31966,
    "c": 0.11036,
    "h": 265.5
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#172D6A
secondary
#A0863D
accent
#BB40E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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