#171D3F#171D3F

#171D3F is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.065 H 273.2°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#171D3F
RGBrgb(23, 29, 63)
HSLhsl(231, 47%, 17%)
HSVhsv(231, 63%, 25%)
CMYKcmyk(63.5%, 54%, 0%, 75.3%)
CIE-LABlab(12.09, 9.43, -22.65)
CIE-LCHlch(12.09, 24.53, 292.60°)
OKLaboklab(24.57% 0.0036 -0.0646)
OKLCHoklch(24.57% 0.065 273.2)
XYZxyz(1.6896, 1.4196, 4.8866)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D3F #3F3917
analogous
#17313F #171D3F #25173F
triadic
#171D3F #3F171D #1D3F17
tetradic
#171D3F #3F1731 #3F3917 #173F25
square
#171D3F #3F1731 #3F3917 #173F25
split-complementary
#171D3F #3F2517 #313F17
monochromatic
#080A16 #080A16 #171D3F #27326C #384699

Accessibility & contrast

On white

16.36
#171D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#171D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D3F
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D3F#FFFFFF#000000##FFFFFF
##171D3F1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2140
Deuteranopia (green-blind)
#081E3E
Tritanopia (blue-blind)
#03252A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171d3f;
/* rgb */ color: rgb(23, 29, 63);
/* oklch */ color: oklch(24.6% 0.065 273.2);
Tailwind
colors: {
  custom: {
    50: '#585874',
    500: '#171d3f',
    950: '#000000',
  },
}
SCSS
$custom: #171d3f;
$custom-light: #585874;
$custom-dark: #000000;
JSON
{
  "hex": "#171d3f",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 63
  },
  "hsl": {
    "h": 231,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24568,
    "c": 0.06467,
    "h": 273.2
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#171D3F
secondary
#766D3C
accent
#C252D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #171D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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