#172D6E#172D6E

#172D6E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.3% C 0.116 H 265.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#172D6E
RGBrgb(23, 45, 110)
HSLhsl(225, 65%, 26%)
HSVhsv(225, 79%, 43%)
CMYKcmyk(79.1%, 59.1%, 0%, 56.9%)
CIE-LABlab(20.77, 16.95, -40.24)
CIE-LCHlch(20.77, 43.66, 292.84°)
OKLaboklab(32.32% -0.0084 -0.1161)
OKLCHoklch(32.32% 0.116 265.9)
XYZxyz(4.1052, 3.1843, 15.1471)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D6E #6E5817
analogous
#17586E #172D6E #2C176E
triadic
#172D6E #6E172D #2D6E17
tetradic
#172D6E #6E1758 #6E5817 #176E2C
square
#172D6E #6E1758 #6E5817 #176E2C
split-complementary
#172D6E #6E2C17 #586E17
monochromatic
#050A19 #0C183B #172D6E #2242A1 #2C57D3

Accessibility & contrast

On white

12.83
#172D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D6E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D6E#FFFFFF#000000##FFFFFF
##172D6E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172d6e;
/* rgb */ color: rgb(23, 45, 110);
/* oklch */ color: oklch(32.3% 0.116 265.9);
Tailwind
colors: {
  custom: {
    50: '#636598',
    500: '#172d6e',
    950: '#000000',
  },
}
SCSS
$custom: #172d6e;
$custom-light: #636598;
$custom-dark: #000000;
JSON
{
  "hex": "#172d6e",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 110
  },
  "hsl": {
    "h": 224.828,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32319,
    "c": 0.11636,
    "h": 265.9
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#172D6E
secondary
#A48A3D
accent
#BE3FE8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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