#171D5C#171D5C

#171D5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.111 H 272.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#171D5C
RGBrgb(23, 29, 92)
HSLhsl(235, 60%, 23%)
HSVhsv(235, 75%, 36%)
CMYKcmyk(75%, 68.5%, 0%, 63.9%)
CIE-LABlab(14.59, 21.17, -38.49)
CIE-LCHlch(14.59, 43.93, 298.81°)
OKLaboklab(27.22% 0.0046 -0.1111)
OKLCHoklch(27.22% 0.111 272.3)
XYZxyz(2.7238, 1.8333, 10.3335)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D5C #5C5617
analogous
#173F5C #171D5C #34175C
triadic
#171D5C #5C171D #1D5C17
tetradic
#171D5C #5C173F #5C5617 #175C34
square
#171D5C #5C173F #5C5617 #175C34
split-complementary
#171D5C #5C3417 #3F5C17
monochromatic
#060818 #0B0E2B #171D5C #232C8D #2F3CBE

Accessibility & contrast

On white

15.36
#171D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D5C
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D5C#FFFFFF#000000##FFFFFF
##171D5C1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171d5c;
/* rgb */ color: rgb(23, 29, 92);
/* oklch */ color: oklch(27.2% 0.111 272.3);
Tailwind
colors: {
  custom: {
    50: '#5f598b',
    500: '#171d5c',
    950: '#000000',
  },
}
SCSS
$custom: #171d5c;
$custom-light: #5f598b;
$custom-dark: #000000;
JSON
{
  "hex": "#171d5c",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 234.783,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27219,
    "c": 0.11123,
    "h": 272.3
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#171D5C
secondary
#938B3C
accent
#D545E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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