#172D6F#172D6F

#172D6F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.118 H 266.0°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#172D6F
RGBrgb(23, 45, 111)
HSLhsl(225, 66%, 26%)
HSVhsv(225, 79%, 44%)
CMYKcmyk(79.3%, 59.5%, 0%, 56.5%)
CIE-LABlab(20.85, 17.36, -40.75)
CIE-LCHlch(20.85, 44.29, 293.08°)
OKLaboklab(32.41% -0.0083 -0.1175)
OKLCHoklch(32.41% 0.118 266)
XYZxyz(4.1600, 3.2062, 15.4355)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D6F #6F5917
analogous
#17596F #172D6F #2D176F
triadic
#172D6F #6F172D #2D6F17
tetradic
#172D6F #6F1759 #6F5917 #176F2D
square
#172D6F #6F1759 #6F5917 #176F2D
split-complementary
#172D6F #6F2D17 #596F17
monochromatic
#050A19 #0C183C #172D6F #2242A2 #2D57D3

Accessibility & contrast

On white

12.79
#172D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D6F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D6F#FFFFFF#000000##FFFFFF
##172D6F1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172d6f;
/* rgb */ color: rgb(23, 45, 111);
/* oklch */ color: oklch(32.4% 0.118 266.0);
Tailwind
colors: {
  custom: {
    50: '#636599',
    500: '#172d6f',
    950: '#000000',
  },
}
SCSS
$custom: #172d6f;
$custom-light: #636599;
$custom-dark: #000000;
JSON
{
  "hex": "#172d6f",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 111
  },
  "hsl": {
    "h": 225,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32409,
    "c": 0.11784,
    "h": 266
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#172D6F
secondary
#A58B3D
accent
#BE3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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