#172D57#172D57

#172D57 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.081 H 262.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#172D57
RGBrgb(23, 45, 87)
HSLhsl(219, 58%, 22%)
HSVhsv(219, 74%, 34%)
CMYKcmyk(73.6%, 48.3%, 0%, 65.9%)
CIE-LABlab(19.00, 7.35, -28.01)
CIE-LCHlch(19.00, 28.96, 284.71°)
OKLaboklab(30.41% -0.0113 -0.0801)
OKLCHoklch(30.41% 0.081 262)
XYZxyz(3.0114, 2.7467, 9.3864)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D57 #574117
analogous
#174D57 #172D57 #211757
triadic
#172D57 #57172D #2D5717
tetradic
#172D57 #57174D #574117 #175721
square
#172D57 #57174D #574117 #175721
split-complementary
#172D57 #572117 #4D5717
monochromatic
#060D18 #0A1427 #172D57 #244687 #315FB8

Accessibility & contrast

On white

13.55
#172D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D57
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D57#FFFFFF#000000##FFFFFF
##172D571.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#0D2B56
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172d57;
/* rgb */ color: rgb(23, 45, 87);
/* oklch */ color: oklch(30.4% 0.081 262.0);
Tailwind
colors: {
  custom: {
    50: '#5d6587',
    500: '#172d57',
    950: '#000000',
  },
}
SCSS
$custom: #172d57;
$custom-light: #5d6587;
$custom-dark: #000000;
JSON
{
  "hex": "#172d57",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 87
  },
  "hsl": {
    "h": 219.375,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30412,
    "c": 0.08088,
    "h": 262
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#172D57
secondary
#8E723C
accent
#AC46E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172D57

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

Preview Lab → · Contrast checker → · Palette generator →

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