#171D4D#171D4D

#171D4D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.088 H 273.2°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#171D4D
RGBrgb(23, 29, 77)
HSLhsl(233, 54%, 20%)
HSVhsv(233, 70%, 30%)
CMYKcmyk(70.1%, 62.3%, 0%, 69.8%)
CIE-LABlab(13.21, 15.11, -30.57)
CIE-LCHlch(13.21, 34.10, 296.29°)
OKLaboklab(25.77% 0.0049 -0.0879)
OKLCHoklch(25.77% 0.088 273.2)
XYZxyz(2.1318, 1.5965, 7.2156)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D4D #4D4717
analogous
#17384D #171D4D #2C174D
triadic
#171D4D #4D171D #1D4D17
tetradic
#171D4D #4D1738 #4D4717 #174D2C
square
#171D4D #4D1738 #4D4717 #174D2C
split-complementary
#171D4D #4D2C17 #384D17
monochromatic
#070918 #090B1E #171D4D #252F7C #3340AB

Accessibility & contrast

On white

15.92
#171D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D4D
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D4D#FFFFFF#000000##FFFFFF
##171D4D1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171d4d;
/* rgb */ color: rgb(23, 29, 77);
/* oklch */ color: oklch(25.8% 0.088 273.2);
Tailwind
colors: {
  custom: {
    50: '#5b587f',
    500: '#171d4d',
    950: '#000000',
  },
}
SCSS
$custom: #171d4d;
$custom-light: #5b587f;
$custom-dark: #000000;
JSON
{
  "hex": "#171d4d",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 77
  },
  "hsl": {
    "h": 233.333,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2577,
    "c": 0.08803,
    "h": 273.2
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#171D4D
secondary
#847C3C
accent
#CD4ADD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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