#171D51#171D51

#171D51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.094 H 273.0°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#171D51
RGBrgb(23, 29, 81)
HSLhsl(234, 56%, 20%)
HSVhsv(234, 72%, 32%)
CMYKcmyk(71.6%, 64.2%, 0%, 68.2%)
CIE-LABlab(13.56, 16.73, -32.74)
CIE-LCHlch(13.56, 36.77, 297.07°)
OKLaboklab(26.14% 0.0049 -0.0943)
OKLCHoklch(26.14% 0.094 273)
XYZxyz(2.2774, 1.6548, 7.9824)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D51 #514B17
analogous
#173A51 #171D51 #2E1751
triadic
#171D51 #51171D #1D5117
tetradic
#171D51 #51173A #514B17 #17512E
square
#171D51 #51173A #514B17 #17512E
split-complementary
#171D51 #512E17 #3A5117
monochromatic
#070918 #090C21 #171D51 #252E81 #323FB0

Accessibility & contrast

On white

15.78
#171D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D51
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D51#FFFFFF#000000##FFFFFF
##171D511.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171d51;
/* rgb */ color: rgb(23, 29, 81);
/* oklch */ color: oklch(26.1% 0.094 273.0);
Tailwind
colors: {
  custom: {
    50: '#5c5882',
    500: '#171d51',
    950: '#000000',
  },
}
SCSS
$custom: #171d51;
$custom-light: #5c5882;
$custom-dark: #000000;
JSON
{
  "hex": "#171d51",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 233.793,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26142,
    "c": 0.09439,
    "h": 273
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#171D51
secondary
#88803C
accent
#D049DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #171D51

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

Preview Lab → · Contrast checker → · Palette generator →

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