#171F8F#171F8F

#171F8F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.178 H 269.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#171F8F
RGBrgb(23, 31, 143)
HSLhsl(236, 72%, 33%)
HSVhsv(236, 84%, 56%)
CMYKcmyk(83.9%, 78.3%, 0%, 43.9%)
CIE-LABlab(20.61, 39.03, -61.40)
CIE-LCHlch(20.61, 72.75, 302.44°)
OKLaboklab(33.21% -0.0032 -0.1779)
OKLCHoklch(33.21% 0.178 269)
XYZxyz(5.7996, 3.1446, 26.2826)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F8F #8F8717
analogous
#175B8F #171F8F #4B178F
triadic
#171F8F #8F171F #1F8F17
tetradic
#171F8F #8F175B #8F8717 #178F4B
square
#171F8F #8F175B #8F8717 #178F4B
split-complementary
#171F8F #8F4B17 #5B8F17
monochromatic
#060826 #0F145A #171F8F #1F2AC4 #404BE0

Accessibility & contrast

On white

12.89
#171F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#171F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F8F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F8F#FFFFFF#000000##FFFFFF
##171F8F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #171f8f;
/* rgb */ color: rgb(23, 31, 143);
/* oklch */ color: oklch(33.2% 0.178 269.0);
Tailwind
colors: {
  custom: {
    50: '#6d5cb1',
    500: '#171f8f',
    950: '#000000',
  },
}
SCSS
$custom: #171f8f;
$custom-light: #6d5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#171f8f",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 236,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33212,
    "c": 0.17793,
    "h": 269
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#171F8F
secondary
#C1B841
accent
#E339EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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