#172D5C#172D5C

#172D5C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.089 H 263.3°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#172D5C
RGBrgb(23, 45, 92)
HSLhsl(221, 60%, 23%)
HSVhsv(221, 75%, 36%)
CMYKcmyk(75%, 51.1%, 0%, 63.9%)
CIE-LABlab(19.36, 9.44, -30.76)
CIE-LCHlch(19.36, 32.17, 287.06°)
OKLaboklab(30.8% -0.0104 -0.0882)
OKLCHoklch(30.8% 0.089 263.3)
XYZxyz(3.2228, 2.8313, 10.4998)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D5C #5C4617
analogous
#174F5C #172D5C #24175C
triadic
#172D5C #5C172D #2D5C17
tetradic
#172D5C #5C174F #5C4617 #175C24
square
#172D5C #5C174F #5C4617 #175C24
split-complementary
#172D5C #5C2417 #4F5C17
monochromatic
#060C18 #0B152B #172D5C #23458D #2F5DBE

Accessibility & contrast

On white

13.41
#172D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D5C
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D5C#FFFFFF#000000##FFFFFF
##172D5C1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14325E
Deuteranopia (green-blind)
#042C5B
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172d5c;
/* rgb */ color: rgb(23, 45, 92);
/* oklch */ color: oklch(30.8% 0.089 263.3);
Tailwind
colors: {
  custom: {
    50: '#5e658a',
    500: '#172d5c',
    950: '#000000',
  },
}
SCSS
$custom: #172d5c;
$custom-light: #5e658a;
$custom-dark: #000000;
JSON
{
  "hex": "#172d5c",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 92
  },
  "hsl": {
    "h": 220.87,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30799,
    "c": 0.08877,
    "h": 263.3
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#172D5C
secondary
#93773C
accent
#B145E3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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