#171D4A#171D4A

#171D4A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.083 H 273.3°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#171D4A
RGBrgb(23, 29, 74)
HSLhsl(233, 53%, 19%)
HSVhsv(233, 69%, 29%)
CMYKcmyk(68.9%, 60.8%, 0%, 71%)
CIE-LABlab(12.95, 13.88, -28.92)
CIE-LCHlch(12.95, 32.08, 295.64°)
OKLaboklab(25.5% 0.0048 -0.083)
OKLCHoklch(25.5% 0.083 273.3)
XYZxyz(2.0283, 1.5551, 6.6705)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D4A #4A4417
analogous
#17374A #171D4A #2B174A
triadic
#171D4A #4A171D #1D4A17
tetradic
#171D4A #4A1737 #4A4417 #174A2B
square
#171D4A #4A1737 #4A4417 #174A2B
split-complementary
#171D4A #4A2B17 #374A17
monochromatic
#070917 #080B1B #171D4A #262F79 #3442A7

Accessibility & contrast

On white

16.02
#171D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D4A
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D4A#FFFFFF#000000##FFFFFF
##171D4A1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171d4a;
/* rgb */ color: rgb(23, 29, 74);
/* oklch */ color: oklch(25.5% 0.083 273.3);
Tailwind
colors: {
  custom: {
    50: '#5b587d',
    500: '#171d4a',
    950: '#000000',
  },
}
SCSS
$custom: #171d4a;
$custom-light: #5b587d;
$custom-dark: #000000;
JSON
{
  "hex": "#171d4a",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 74
  },
  "hsl": {
    "h": 232.941,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25499,
    "c": 0.08317,
    "h": 273.3
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#171D4A
secondary
#81793C
accent
#CB4CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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