#171C86#171C86

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

Color values

HEX#171C86
RGBrgb(23, 28, 134)
HSLhsl(237, 71%, 31%)
HSVhsv(237, 83%, 53%)
CMYKcmyk(82.8%, 79.1%, 0%, 47.5%)
CIE-LABlab(18.94, 37.61, -58.54)
CIE-LCHlch(18.94, 69.58, 302.72°)
OKLaboklab(31.72% -0.0008 -0.1696)
OKLCHoklch(31.72% 0.17 269.7)
XYZxyz(5.0702, 2.7333, 22.8100)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C86 #868117
analogous
#175386 #171C86 #491786
triadic
#171C86 #86171C #1C8617
tetradic
#171C86 #861753 #868117 #178649
square
#171C86 #861753 #868117 #178649
split-complementary
#171C86 #864917 #538617
monochromatic
#05061E #0E1152 #171C86 #2027BA #3A42DD

Accessibility & contrast

On white

13.58
#171C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C86
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C86#FFFFFF#000000##FFFFFF
##171C861.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c86;
/* rgb */ color: rgb(23, 28, 134);
/* oklch */ color: oklch(31.7% 0.170 269.7);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#171c86',
    950: '#000000',
  },
}
SCSS
$custom: #171c86;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#171c86",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 237.297,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3172,
    "c": 0.16956,
    "h": 269.7
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#171C86
secondary
#BAB43F
accent
#E53AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171C86

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

Preview Lab → · Contrast checker → · Palette generator →

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