#171D5D#171D5D

#171D5D is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.113 H 272.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#171D5D
RGBrgb(23, 29, 93)
HSLhsl(235, 60%, 23%)
HSVhsv(235, 75%, 36%)
CMYKcmyk(75.3%, 68.8%, 0%, 63.5%)
CIE-LABlab(14.68, 21.57, -39.00)
CIE-LCHlch(14.68, 44.57, 298.94°)
OKLaboklab(27.32% 0.0045 -0.1126)
OKLCHoklch(27.32% 0.113 272.3)
XYZxyz(2.7678, 1.8509, 10.5652)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D5D #5D5717
analogous
#17405D #171D5D #34175D
triadic
#171D5D #5D171D #1D5D17
tetradic
#171D5D #5D1740 #5D5717 #175D34
square
#171D5D #5D1740 #5D5717 #175D34
split-complementary
#171D5D #5D3417 #405D17
monochromatic
#060819 #0B0E2C #171D5D #232C8E #2F3CBF

Accessibility & contrast

On white

15.33
#171D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D5D
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D5D#FFFFFF#000000##FFFFFF
##171D5D1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171d5d;
/* rgb */ color: rgb(23, 29, 93);
/* oklch */ color: oklch(27.3% 0.113 272.3);
Tailwind
colors: {
  custom: {
    50: '#5f598c',
    500: '#171d5d',
    950: '#000000',
  },
}
SCSS
$custom: #171d5d;
$custom-light: #5f598c;
$custom-dark: #000000;
JSON
{
  "hex": "#171d5d",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 234.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27321,
    "c": 0.11272,
    "h": 272.3
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#171D5D
secondary
#948C3C
accent
#D644E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171D5D

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

Preview Lab → · Contrast checker → · Palette generator →

#171D5D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva