#171D59#171D59

#171D59 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.107 H 272.5°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#171D59
RGBrgb(23, 29, 89)
HSLhsl(235, 59%, 22%)
HSVhsv(235, 74%, 35%)
CMYKcmyk(74.2%, 67.4%, 0%, 65.1%)
CIE-LABlab(14.30, 19.97, -36.95)
CIE-LCHlch(14.30, 42.00, 298.39°)
OKLaboklab(26.92% 0.0047 -0.1066)
OKLCHoklch(26.92% 0.107 272.5)
XYZxyz(2.5953, 1.7819, 9.6564)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D59 #595317
analogous
#173E59 #171D59 #321759
triadic
#171D59 #59171D #1D5917
tetradic
#171D59 #59173E #595317 #175932
square
#171D59 #59173E #595317 #175932
split-complementary
#171D59 #593217 #3E5917
monochromatic
#060818 #0A0D28 #171D59 #242D8A #303DBA

Accessibility & contrast

On white

15.48
#171D59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D59
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D59#FFFFFF#000000##FFFFFF
##171D591.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002158
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171d59;
/* rgb */ color: rgb(23, 29, 89);
/* oklch */ color: oklch(26.9% 0.107 272.5);
Tailwind
colors: {
  custom: {
    50: '#5e5988',
    500: '#171d59',
    950: '#000000',
  },
}
SCSS
$custom: #171d59;
$custom-light: #5e5988;
$custom-dark: #000000;
JSON
{
  "hex": "#171d59",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 89
  },
  "hsl": {
    "h": 234.545,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26918,
    "c": 0.10673,
    "h": 272.5
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#171D59
secondary
#90883C
accent
#D446E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171D59

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

Preview Lab → · Contrast checker → · Palette generator →

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