#172F5D#172F5D

#172F5D is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.088 H 261.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#172F5D
RGBrgb(23, 47, 93)
HSLhsl(219, 60%, 23%)
HSVhsv(219, 75%, 36%)
CMYKcmyk(75.3%, 49.5%, 0%, 63.5%)
CIE-LABlab(20.06, 8.40, -30.28)
CIE-LCHlch(20.06, 31.42, 285.51°)
OKLaboklab(31.37% -0.0123 -0.0867)
OKLCHoklch(31.37% 0.088 261.9)
XYZxyz(3.3449, 3.0052, 10.7576)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F5D #5D4517
analogous
#17525D #172F5D #22175D
triadic
#172F5D #5D172F #2F5D17
tetradic
#172F5D #5D1752 #5D4517 #175D22
square
#172F5D #5D1752 #5D4517 #175D22
split-complementary
#172F5D #5D2217 #525D17
monochromatic
#060C19 #0B162C #172F5D #23488E #2F61BF

Accessibility & contrast

On white

13.12
#172F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F5D
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F5D#FFFFFF#000000##FFFFFF
##172F5D1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17345F
Deuteranopia (green-blind)
#092D5C
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172f5d;
/* rgb */ color: rgb(23, 47, 93);
/* oklch */ color: oklch(31.4% 0.088 261.9);
Tailwind
colors: {
  custom: {
    50: '#5e678b',
    500: '#172f5d',
    950: '#000000',
  },
}
SCSS
$custom: #172f5d;
$custom-light: #5e678b;
$custom-dark: #000000;
JSON
{
  "hex": "#172f5d",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 219.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31366,
    "c": 0.08759,
    "h": 261.9
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#172F5D
secondary
#94763C
accent
#AD44E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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