#172F5C#172F5C

#172F5C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.086 H 261.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#172F5C
RGBrgb(23, 47, 92)
HSLhsl(219, 60%, 23%)
HSVhsv(219, 75%, 36%)
CMYKcmyk(75%, 48.9%, 0%, 63.9%)
CIE-LABlab(19.99, 7.98, -29.73)
CIE-LCHlch(19.99, 30.78, 285.03°)
OKLaboklab(31.29% -0.0125 -0.0851)
OKLCHoklch(31.29% 0.086 261.7)
XYZxyz(3.3009, 2.9876, 10.5258)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F5C #5C4417
analogous
#17525C #172F5C #21175C
triadic
#172F5C #5C172F #2F5C17
tetradic
#172F5C #5C1752 #5C4417 #175C21
square
#172F5C #5C1752 #5C4417 #175C21
split-complementary
#172F5C #5C2117 #525C17
monochromatic
#060D18 #0B162B #172F5C #23488D #2F61BE

Accessibility & contrast

On white

13.14
#172F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F5C
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F5C#FFFFFF#000000##FFFFFF
##172F5C1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18345E
Deuteranopia (green-blind)
#0B2D5B
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172f5c;
/* rgb */ color: rgb(23, 47, 92);
/* oklch */ color: oklch(31.3% 0.086 261.7);
Tailwind
colors: {
  custom: {
    50: '#5e678a',
    500: '#172f5c',
    950: '#000000',
  },
}
SCSS
$custom: #172f5c;
$custom-light: #5e678a;
$custom-dark: #000000;
JSON
{
  "hex": "#172f5c",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 219.13,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31289,
    "c": 0.08602,
    "h": 261.7
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#172F5C
secondary
#93753C
accent
#AC45E3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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