#171A88#171A88

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

Color values

HEX#171A88
RGBrgb(23, 26, 136)
HSLhsl(238, 71%, 31%)
HSVhsv(238, 83%, 53%)
CMYKcmyk(83.1%, 80.9%, 0%, 46.7%)
CIE-LABlab(18.79, 39.43, -60.05)
CIE-LCHlch(18.79, 71.83, 303.29°)
OKLaboklab(31.68% -0.0006 -0.1739)
OKLCHoklch(31.68% 0.174 269.8)
XYZxyz(5.1652, 2.6979, 23.5363)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A88 #888517
analogous
#175288 #171A88 #4C1788
triadic
#171A88 #88171A #1A8817
tetradic
#171A88 #881752 #888517 #17884C
square
#171A88 #881752 #888517 #17884C
split-complementary
#171A88 #884C17 #528817
monochromatic
#05061F #0E1054 #171A88 #2024BC #3B40DE

Accessibility & contrast

On white

13.64
#171A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#171A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A88
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A88#FFFFFF#000000##FFFFFF
##171A881.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002886
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171a88;
/* rgb */ color: rgb(23, 26, 136);
/* oklch */ color: oklch(31.7% 0.174 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c59ac',
    500: '#171a88',
    950: '#000000',
  },
}
SCSS
$custom: #171a88;
$custom-light: #6c59ac;
$custom-dark: #000000;
JSON
{
  "hex": "#171a88",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 238.407,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31684,
    "c": 0.17391,
    "h": 269.8
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#171A88
secondary
#BCB83F
accent
#E93AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171A88

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

Preview Lab → · Contrast checker → · Palette generator →

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