#171885#171885

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

Color values

HEX#171885
RGBrgb(23, 24, 133)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 52%)
CMYKcmyk(82.7%, 82%, 0%, 47.8%)
CIE-LABlab(18.05, 39.49, -59.39)
CIE-LCHlch(18.05, 71.32, 303.62°)
OKLaboklab(31.06% 0.0006 -0.172)
OKLCHoklch(31.06% 0.172 270.2)
XYZxyz(4.9122, 2.5283, 22.4149)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171885 #858417
analogous
#174F85 #171885 #4D1785
triadic
#171885 #851718 #188517
tetradic
#171885 #85174F #858417 #17854D
square
#171885 #85174F #858417 #17854D
split-complementary
#171885 #854D17 #4F8517
monochromatic
#05051D #0E0F51 #171885 #2021B9 #3A3BDD

Accessibility & contrast

On white

13.95
#171885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171885
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171885#FFFFFF#000000##FFFFFF
##1718851.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171885;
/* rgb */ color: rgb(23, 24, 133);
/* oklch */ color: oklch(31.1% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#6b57aa',
    500: '#171885',
    950: '#000000',
  },
}
SCSS
$custom: #171885;
$custom-light: #6b57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#171885",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 239.455,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31056,
    "c": 0.17198,
    "h": 270.2
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#171885
secondary
#B9B83F
accent
#EC3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171885

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

Preview Lab → · Contrast checker → · Palette generator →

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