#172D5B#172D5B

#172D5B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.087 H 263.0°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#172D5B
RGBrgb(23, 45, 91)
HSLhsl(221, 60%, 22%)
HSVhsv(221, 75%, 36%)
CMYKcmyk(74.7%, 50.5%, 0%, 64.3%)
CIE-LABlab(19.28, 9.02, -30.21)
CIE-LCHlch(19.28, 31.53, 286.63°)
OKLaboklab(30.72% -0.0106 -0.0866)
OKLCHoklch(30.72% 0.087 263)
XYZxyz(3.1794, 2.8139, 10.2711)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D5B #5B4517
analogous
#174F5B #172D5B #23175B
triadic
#172D5B #5B172D #2D5B17
tetradic
#172D5B #5B174F #5B4517 #175B23
square
#172D5B #5B174F #5B4517 #175B23
split-complementary
#172D5B #5B2317 #4F5B17
monochromatic
#060C18 #0B152A #172D5B #23458C #305DBD

Accessibility & contrast

On white

13.44
#172D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D5B
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D5B#FFFFFF#000000##FFFFFF
##172D5B1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15325D
Deuteranopia (green-blind)
#062C5A
Tritanopia (blue-blind)
#00383F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172d5b;
/* rgb */ color: rgb(23, 45, 91);
/* oklch */ color: oklch(30.7% 0.087 263.0);
Tailwind
colors: {
  custom: {
    50: '#5e658a',
    500: '#172d5b',
    950: '#000000',
  },
}
SCSS
$custom: #172d5b;
$custom-light: #5e658a;
$custom-dark: #000000;
JSON
{
  "hex": "#172d5b",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 91
  },
  "hsl": {
    "h": 220.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3072,
    "c": 0.0872,
    "h": 263
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#172D5B
secondary
#92763C
accent
#B045E3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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