#171F8B#171F8B

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

Color values

HEX#171F8B
RGBrgb(23, 31, 139)
HSLhsl(236, 72%, 32%)
HSVhsv(236, 83%, 55%)
CMYKcmyk(83.5%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.15, 37.61, -59.68)
CIE-LCHlch(20.15, 70.55, 302.22°)
OKLaboklab(32.74% -0.0026 -0.1729)
OKLCHoklch(32.74% 0.173 269.2)
XYZxyz(5.5019, 3.0256, 24.7151)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F8B #8B8317
analogous
#17598B #171F8B #49178B
triadic
#171F8B #8B171F #1F8B17
tetradic
#171F8B #8B1759 #8B8317 #178B49
square
#171F8B #8B1759 #8B8317 #178B49
split-complementary
#171F8B #8B4917 #598B17
monochromatic
#060822 #0E1356 #171F8B #202BC0 #3D49DF

Accessibility & contrast

On white

13.08
#171F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F8B
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F8B#FFFFFF#000000##FFFFFF
##171F8B1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171f8b;
/* rgb */ color: rgb(23, 31, 139);
/* oklch */ color: oklch(32.7% 0.173 269.2);
Tailwind
colors: {
  custom: {
    50: '#6c5cae',
    500: '#171f8b',
    950: '#000000',
  },
}
SCSS
$custom: #171f8b;
$custom-light: #6c5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#171f8b",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 235.862,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32743,
    "c": 0.17293,
    "h": 269.2
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#171F8B
secondary
#BFB63F
accent
#E239EE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #171F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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