#171785#171785

#171785 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.173 H 270.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#171785
RGBrgb(23, 23, 133)
HSLhsl(240, 71%, 31%)
HSVhsv(240, 83%, 52%)
CMYKcmyk(82.7%, 82.7%, 0%, 47.8%)
CIE-LABlab(17.86, 40.02, -59.70)
CIE-LCHlch(17.86, 71.87, 303.84°)
OKLaboklab(30.93% 0.0009 -0.1728)
OKLCHoklch(30.93% 0.173 270.3)
XYZxyz(4.8919, 2.4878, 22.4081)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171785 #858517
analogous
#174E85 #171785 #4E1785
triadic
#171785 #851717 #178517
tetradic
#171785 #85174E #858517 #17854E
square
#171785 #85174E #858517 #17854E
split-complementary
#171785 #854E17 #4E8517
monochromatic
#05051D #0E0E51 #171785 #2020B9 #3A3ADD

Accessibility & contrast

On white

14.02
#171785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171785
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171785#FFFFFF#000000##FFFFFF
##1717851.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171785;
/* rgb */ color: rgb(23, 23, 133);
/* oklch */ color: oklch(30.9% 0.173 270.3);
Tailwind
colors: {
  custom: {
    50: '#6b57aa',
    500: '#171785',
    950: '#000000',
  },
}
SCSS
$custom: #171785;
$custom-light: #6b57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#171785",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.30928,
    "c": 0.17284,
    "h": 270.3
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#171785
secondary
#B9B93F
accent
#ED3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171785

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

Preview Lab → · Contrast checker → · Palette generator →

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