#172D6C#172D6C

#172D6C is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.1% C 0.113 H 265.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#172D6C
RGBrgb(23, 45, 108)
HSLhsl(224, 65%, 26%)
HSVhsv(224, 79%, 42%)
CMYKcmyk(78.7%, 58.3%, 0%, 57.6%)
CIE-LABlab(20.60, 16.12, -39.22)
CIE-LCHlch(20.60, 42.40, 292.35°)
OKLaboklab(32.14% -0.0085 -0.113)
OKLCHoklch(32.14% 0.113 265.7)
XYZxyz(3.9976, 3.1412, 14.5801)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D6C #6C5617
analogous
#17576C #172D6C #2C176C
triadic
#172D6C #6C172D #2D6C17
tetradic
#172D6C #6C1757 #6C5617 #176C2C
square
#172D6C #6C1757 #6C5617 #176C2C
split-complementary
#172D6C #6C2C17 #576C17
monochromatic
#050B19 #0C183A #172D6C #22429E #2C57D1

Accessibility & contrast

On white

12.90
#172D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D6C
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D6C#FFFFFF#000000##FFFFFF
##172D6C1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#003C47
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172d6c;
/* rgb */ color: rgb(23, 45, 108);
/* oklch */ color: oklch(32.1% 0.113 265.7);
Tailwind
colors: {
  custom: {
    50: '#626597',
    500: '#172d6c',
    950: '#000000',
  },
}
SCSS
$custom: #172d6c;
$custom-light: #626597;
$custom-dark: #000000;
JSON
{
  "hex": "#172d6c",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 108
  },
  "hsl": {
    "h": 224.471,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32141,
    "c": 0.11337,
    "h": 265.7
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#172D6C
secondary
#A2883D
accent
#BC40E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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