#171B8D#171B8D

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

Color values

HEX#171B8D
RGBrgb(23, 27, 141)
HSLhsl(238, 72%, 32%)
HSVhsv(238, 84%, 55%)
CMYKcmyk(83.7%, 80.9%, 0%, 44.7%)
CIE-LABlab(19.59, 40.58, -61.85)
CIE-LCHlch(19.59, 73.97, 303.27°)
OKLaboklab(32.42% -0.0018 -0.1791)
OKLCHoklch(32.42% 0.179 269.4)
XYZxyz(5.5514, 2.8885, 25.4591)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B8D #8D8917
analogous
#17568D #171B8D #4E178D
triadic
#171B8D #8D171B #1B8D17
tetradic
#171B8D #8D1756 #8D8917 #178D4E
square
#171B8D #8D1756 #8D8917 #178D4E
split-complementary
#171B8D #8D4E17 #568D17
monochromatic
#060724 #0E1158 #171B8D #2025C2 #3F44E0

Accessibility & contrast

On white

13.31
#171B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B8D
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B8D#FFFFFF#000000##FFFFFF
##171B8D1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171b8d;
/* rgb */ color: rgb(23, 27, 141);
/* oklch */ color: oklch(32.4% 0.179 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d5ab0',
    500: '#171b8d',
    950: '#000000',
  },
}
SCSS
$custom: #171b8d;
$custom-light: #6d5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#171b8d",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 237.966,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32422,
    "c": 0.17916,
    "h": 269.4
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#171B8D
secondary
#C0BC40
accent
#E939EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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