#171786#171786

#171786 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.174 H 270.2°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#171786
RGBrgb(23, 23, 134)
HSLhsl(240, 71%, 31%)
HSVhsv(240, 83%, 53%)
CMYKcmyk(82.8%, 82.8%, 0%, 47.5%)
CIE-LABlab(17.99, 40.36, -60.12)
CIE-LCHlch(17.99, 72.41, 303.88°)
OKLaboklab(31.05% 0.0006 -0.1741)
OKLCHoklch(31.05% 0.174 270.2)
XYZxyz(4.9614, 2.5156, 22.7737)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171786 #868617
analogous
#174E86 #171786 #4E1786
triadic
#171786 #861717 #178617
tetradic
#171786 #86174E #868617 #17864E
square
#171786 #86174E #868617 #17864E
split-complementary
#171786 #864E17 #4E8617
monochromatic
#05051E #0E0E52 #171786 #2020BA #3A3ADD

Accessibility & contrast

On white

13.97
#171786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171786
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171786#FFFFFF#000000##FFFFFF
##1717861.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002684
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171786;
/* rgb */ color: rgb(23, 23, 134);
/* oklch */ color: oklch(31.1% 0.174 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c57ab',
    500: '#171786',
    950: '#000000',
  },
}
SCSS
$custom: #171786;
$custom-light: #6c57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#171786",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31052,
    "c": 0.17406,
    "h": 270.2
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#171786
secondary
#BABA3F
accent
#ED3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171786

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

Preview Lab → · Contrast checker → · Palette generator →

#171786 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva