#171D8F#171D8F

#171D8F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.180 H 269.1°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#171D8F
RGBrgb(23, 29, 143)
HSLhsl(237, 72%, 33%)
HSVhsv(237, 84%, 56%)
CMYKcmyk(83.9%, 79.7%, 0%, 43.9%)
CIE-LABlab(20.22, 40.16, -62.06)
CIE-LCHlch(20.22, 73.92, 302.91°)
OKLaboklab(32.93% -0.0027 -0.1798)
OKLCHoklch(32.93% 0.18 269.1)
XYZxyz(5.7489, 3.0434, 26.2657)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D8F #8F8917
analogous
#17598F #171D8F #4D178F
triadic
#171D8F #8F171D #1D8F17
tetradic
#171D8F #8F1759 #8F8917 #178F4D
square
#171D8F #8F1759 #8F8917 #178F4D
split-complementary
#171D8F #8F4D17 #598F17
monochromatic
#060826 #0F125A #171D8F #1F28C4 #4048E0

Accessibility & contrast

On white

13.05
#171D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#171D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D8F
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D8F#FFFFFF#000000##FFFFFF
##171D8F1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171d8f;
/* rgb */ color: rgb(23, 29, 143);
/* oklch */ color: oklch(32.9% 0.180 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d5bb1',
    500: '#171d8f',
    950: '#000000',
  },
}
SCSS
$custom: #171d8f;
$custom-light: #6d5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#171d8f",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 237,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32931,
    "c": 0.1798,
    "h": 269.1
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#171D8F
secondary
#C1BA41
accent
#E639EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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