#171D85#171D85

#171D85 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.167 H 269.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#171D85
RGBrgb(23, 29, 133)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 52%)
CMYKcmyk(82.7%, 78.2%, 0%, 47.8%)
CIE-LABlab(19.03, 36.67, -57.76)
CIE-LCHlch(19.03, 68.42, 302.41°)
OKLaboklab(31.75% -0.0009 -0.1673)
OKLCHoklch(31.75% 0.167 269.7)
XYZxyz(5.0249, 2.7538, 22.4524)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D85 #857F17
analogous
#175485 #171D85 #481785
triadic
#171D85 #85171D #1D8517
tetradic
#171D85 #851754 #857F17 #178548
square
#171D85 #851754 #857F17 #178548
split-complementary
#171D85 #854817 #548517
monochromatic
#05061D #0E1251 #171D85 #2028B9 #3A42DD

Accessibility & contrast

On white

13.54
#171D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#171D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D85
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D85#FFFFFF#000000##FFFFFF
##171D851.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002983
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171d85;
/* rgb */ color: rgb(23, 29, 133);
/* oklch */ color: oklch(31.7% 0.167 269.7);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#171d85',
    950: '#000000',
  },
}
SCSS
$custom: #171d85;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#171d85",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 236.727,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31747,
    "c": 0.16733,
    "h": 269.7
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#171D85
secondary
#B9B23F
accent
#E43BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171D85

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

Preview Lab → · Contrast checker → · Palette generator →

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