#171D55#171D55

#171D55 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.101 H 272.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#171D55
RGBrgb(23, 29, 85)
HSLhsl(234, 57%, 21%)
HSVhsv(234, 73%, 33%)
CMYKcmyk(72.9%, 65.9%, 0%, 66.7%)
CIE-LABlab(13.92, 18.36, -34.87)
CIE-LCHlch(13.92, 39.40, 297.77°)
OKLaboklab(26.53% 0.0049 -0.1005)
OKLCHoklch(26.53% 0.101 272.8)
XYZxyz(2.4319, 1.7165, 8.7957)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D55 #554F17
analogous
#173C55 #171D55 #301755
triadic
#171D55 #55171D #1D5517
tetradic
#171D55 #55173C #554F17 #175530
square
#171D55 #55173C #554F17 #175530
split-complementary
#171D55 #553017 #3C5517
monochromatic
#070818 #0A0D25 #171D55 #242D85 #313EB5

Accessibility & contrast

On white

15.63
#171D55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171D55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D55
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D55#FFFFFF#000000##FFFFFF
##171D551.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171d55;
/* rgb */ color: rgb(23, 29, 85);
/* oklch */ color: oklch(26.5% 0.101 272.8);
Tailwind
colors: {
  custom: {
    50: '#5d5885',
    500: '#171d55',
    950: '#000000',
  },
}
SCSS
$custom: #171d55;
$custom-light: #5d5885;
$custom-dark: #000000;
JSON
{
  "hex": "#171d55",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 85
  },
  "hsl": {
    "h": 234.194,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26525,
    "c": 0.10062,
    "h": 272.8
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#171D55
secondary
#8C843C
accent
#D247E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171D55

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

Preview Lab → · Contrast checker → · Palette generator →

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