#171C8F#171C8F

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

Color values

HEX#171C8F
RGBrgb(23, 28, 143)
HSLhsl(238, 72%, 33%)
HSVhsv(238, 84%, 56%)
CMYKcmyk(83.9%, 80.4%, 0%, 43.9%)
CIE-LABlab(20.02, 40.72, -62.38)
CIE-LCHlch(20.02, 74.49, 303.13°)
OKLaboklab(32.8% -0.0024 -0.1807)
OKLCHoklch(32.8% 0.181 269.2)
XYZxyz(5.7248, 2.9952, 26.2577)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C8F #8F8A17
analogous
#17588F #171C8F #4E178F
triadic
#171C8F #8F171C #1C8F17
tetradic
#171C8F #8F1758 #8F8A17 #178F4E
square
#171C8F #8F1758 #8F8A17 #178F4E
split-complementary
#171C8F #8F4E17 #588F17
monochromatic
#060726 #0F125A #171C8F #1F26C4 #4047E0

Accessibility & contrast

On white

13.13
#171C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#171C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C8F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C8F#FFFFFF#000000##FFFFFF
##171C8F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171c8f;
/* rgb */ color: rgb(23, 28, 143);
/* oklch */ color: oklch(32.8% 0.181 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e5ab1',
    500: '#171c8f',
    950: '#000000',
  },
}
SCSS
$custom: #171c8f;
$custom-light: #6e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#171c8f",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 237.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32796,
    "c": 0.18071,
    "h": 269.2
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#171C8F
secondary
#C1BB41
accent
#E739EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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