#171C5D#171C5D

#171C5D is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.114 H 272.7°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#171C5D
RGBrgb(23, 28, 93)
HSLhsl(236, 60%, 23%)
HSVhsv(236, 75%, 36%)
CMYKcmyk(75.3%, 69.9%, 0%, 63.5%)
CIE-LABlab(14.42, 22.28, -39.44)
CIE-LCHlch(14.42, 45.30, 299.46°)
OKLaboklab(27.12% 0.0053 -0.1139)
OKLCHoklch(27.12% 0.114 272.7)
XYZxyz(2.7437, 1.8027, 10.5572)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C5D #5D5817
analogous
#173F5D #171C5D #35175D
triadic
#171C5D #5D171C #1C5D17
tetradic
#171C5D #5D173F #5D5817 #175D35
square
#171C5D #5D173F #5D5817 #175D35
split-complementary
#171C5D #5D3517 #3F5D17
monochromatic
#060719 #0B0D2C #171C5D #232B8E #2F3ABF

Accessibility & contrast

On white

15.43
#171C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C5D
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C5D#FFFFFF#000000##FFFFFF
##171C5D1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171c5d;
/* rgb */ color: rgb(23, 28, 93);
/* oklch */ color: oklch(27.1% 0.114 272.7);
Tailwind
colors: {
  custom: {
    50: '#60588c',
    500: '#171c5d',
    950: '#000000',
  },
}
SCSS
$custom: #171c5d;
$custom-light: #60588c;
$custom-dark: #000000;
JSON
{
  "hex": "#171c5d",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 235.714,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27124,
    "c": 0.11405,
    "h": 272.7
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#171C5D
secondary
#948E3C
accent
#D844E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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