#171C85#171C85

#171C85 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.168 H 269.8°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#171C85
RGBrgb(23, 28, 133)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 52%)
CMYKcmyk(82.7%, 78.9%, 0%, 47.8%)
CIE-LABlab(18.82, 37.26, -58.10)
CIE-LCHlch(18.82, 69.02, 302.67°)
OKLaboklab(31.6% -0.0006 -0.1683)
OKLCHoklch(31.6% 0.168 269.8)
XYZxyz(5.0008, 2.7055, 22.4444)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C85 #858017
analogous
#175385 #171C85 #491785
triadic
#171C85 #85171C #1C8517
tetradic
#171C85 #851753 #858017 #178549
square
#171C85 #851753 #858017 #178549
split-complementary
#171C85 #854917 #538517
monochromatic
#05061D #0E1151 #171C85 #2027B9 #3A41DD

Accessibility & contrast

On white

13.63
#171C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#171C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C85
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C85#FFFFFF#000000##FFFFFF
##171C851.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c85;
/* rgb */ color: rgb(23, 28, 133);
/* oklch */ color: oklch(31.6% 0.168 269.8);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#171c85',
    950: '#000000',
  },
}
SCSS
$custom: #171c85;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#171c85",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 237.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31602,
    "c": 0.16831,
    "h": 269.8
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#171C85
secondary
#B9B33F
accent
#E53BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171C85

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

Preview Lab → · Contrast checker → · Palette generator →

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