#171A8F#171A8F

#171A8F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.182 H 269.4°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#171A8F
RGBrgb(23, 26, 143)
HSLhsl(239, 72%, 33%)
HSVhsv(239, 84%, 56%)
CMYKcmyk(83.9%, 81.8%, 0%, 43.9%)
CIE-LABlab(19.65, 41.79, -62.99)
CIE-LCHlch(19.65, 75.60, 303.56°)
OKLaboklab(32.54% -0.0019 -0.1824)
OKLCHoklch(32.54% 0.182 269.4)
XYZxyz(5.6790, 2.9034, 26.2424)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A8F #8F8C17
analogous
#17568F #171A8F #50178F
triadic
#171A8F #8F171A #1A8F17
tetradic
#171A8F #8F1756 #8F8C17 #178F50
square
#171A8F #8F1756 #8F8C17 #178F50
split-complementary
#171A8F #8F5017 #568F17
monochromatic
#060726 #0F105A #171A8F #1F24C4 #4044E0

Accessibility & contrast

On white

13.28
#171A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#171A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A8F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A8F#FFFFFF#000000##FFFFFF
##171A8F1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171a8f;
/* rgb */ color: rgb(23, 26, 143);
/* oklch */ color: oklch(32.5% 0.182 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e59b1',
    500: '#171a8f',
    950: '#000000',
  },
}
SCSS
$custom: #171a8f;
$custom-light: #6e59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#171a8f",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 238.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32536,
    "c": 0.18245,
    "h": 269.4
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#171A8F
secondary
#C1BE41
accent
#EA39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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