#171E8D#171E8D

#171E8D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.176 H 269.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#171E8D
RGBrgb(23, 30, 141)
HSLhsl(236, 72%, 32%)
HSVhsv(236, 84%, 55%)
CMYKcmyk(83.7%, 78.7%, 0%, 44.7%)
CIE-LABlab(20.18, 38.90, -60.88)
CIE-LCHlch(20.18, 72.25, 302.58°)
OKLaboklab(32.83% -0.0026 -0.1764)
OKLCHoklch(32.83% 0.176 269.2)
XYZxyz(5.6237, 3.0331, 25.4832)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E8D #8D8617
analogous
#17598D #171E8D #4B178D
triadic
#171E8D #8D171E #1E8D17
tetradic
#171E8D #8D1759 #8D8617 #178D4B
square
#171E8D #8D1759 #8D8617 #178D4B
split-complementary
#171E8D #8D4B17 #598D17
monochromatic
#060824 #0E1358 #171E8D #2029C2 #3F48E0

Accessibility & contrast

On white

13.07
#171E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#171E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E8D
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E8D#FFFFFF#000000##FFFFFF
##171E8D1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171e8d;
/* rgb */ color: rgb(23, 30, 141);
/* oklch */ color: oklch(32.8% 0.176 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d5bb0',
    500: '#171e8d',
    950: '#000000',
  },
}
SCSS
$custom: #171e8d;
$custom-light: #6d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#171e8d",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 236.441,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32833,
    "c": 0.1764,
    "h": 269.2
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#171E8D
secondary
#C0B840
accent
#E439EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #171E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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