#171985#171985

#171985 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.171 H 270.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#171985
RGBrgb(23, 25, 133)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 52%)
CMYKcmyk(82.7%, 81.2%, 0%, 47.8%)
CIE-LABlab(18.23, 38.95, -59.08)
CIE-LCHlch(18.23, 70.77, 303.40°)
OKLaboklab(31.19% 0.0003 -0.1711)
OKLCHoklch(31.19% 0.171 270.1)
XYZxyz(4.9332, 2.5703, 22.4219)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171985 #858317
analogous
#175085 #171985 #4C1785
triadic
#171985 #851719 #198517
tetradic
#171985 #851750 #858317 #17854C
square
#171985 #851750 #858317 #17854C
split-complementary
#171985 #854C17 #508517
monochromatic
#05051D #0E0F51 #171985 #2023B9 #3A3DDD

Accessibility & contrast

On white

13.87
#171985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171985
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171985#FFFFFF#000000##FFFFFF
##1719851.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171985;
/* rgb */ color: rgb(23, 25, 133);
/* oklch */ color: oklch(31.2% 0.171 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b58aa',
    500: '#171985',
    950: '#000000',
  },
}
SCSS
$custom: #171985;
$custom-light: #6b58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#171985",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 238.909,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31187,
    "c": 0.1711,
    "h": 270.1
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#171985
secondary
#B9B73F
accent
#EA3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171985

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

Preview Lab → · Contrast checker → · Palette generator →

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