#171F55#171F55

#171F55 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.098 H 271.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#171F55
RGBrgb(23, 31, 85)
HSLhsl(232, 57%, 21%)
HSVhsv(232, 73%, 33%)
CMYKcmyk(72.9%, 63.5%, 0%, 66.7%)
CIE-LABlab(14.50, 16.88, -33.93)
CIE-LCHlch(14.50, 37.89, 296.46°)
OKLaboklab(26.95% 0.003 -0.0977)
OKLCHoklch(26.95% 0.098 271.8)
XYZxyz(2.4825, 1.8178, 8.8126)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F55 #554D17
analogous
#173E55 #171F55 #2E1755
triadic
#171F55 #55171F #1F5517
tetradic
#171F55 #55173E #554D17 #17552E
square
#171F55 #55173E #554D17 #17552E
split-complementary
#171F55 #552E17 #3E5517
monochromatic
#070918 #0A0D25 #171F55 #243185 #3142B5

Accessibility & contrast

On white

15.40
#171F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F55
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F55#FFFFFF#000000##FFFFFF
##171F551.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171f55;
/* rgb */ color: rgb(23, 31, 85);
/* oklch */ color: oklch(27.0% 0.098 271.8);
Tailwind
colors: {
  custom: {
    50: '#5d5a85',
    500: '#171f55',
    950: '#000000',
  },
}
SCSS
$custom: #171f55;
$custom-light: #5d5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#171f55",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 232.258,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26952,
    "c": 0.09777,
    "h": 271.8
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#171F55
secondary
#8C823C
accent
#CD47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F55

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

Preview Lab → · Contrast checker → · Palette generator →

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