#171D4B#171D4B

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

Color values

HEX#171D4B
RGBrgb(23, 29, 75)
HSLhsl(233, 53%, 19%)
HSVhsv(233, 69%, 29%)
CMYKcmyk(69.3%, 61.3%, 0%, 70.6%)
CIE-LABlab(13.04, 14.29, -29.48)
CIE-LCHlch(13.04, 32.76, 295.87°)
OKLaboklab(25.59% 0.0048 -0.0847)
OKLCHoklch(25.59% 0.085 273.3)
XYZxyz(2.0623, 1.5687, 6.8494)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D4B #4B4517
analogous
#17374B #171D4B #2B174B
triadic
#171D4B #4B171D #1D4B17
tetradic
#171D4B #4B1737 #4B4517 #174B2B
square
#171D4B #4B1737 #4B4517 #174B2B
split-complementary
#171D4B #4B2B17 #374B17
monochromatic
#070917 #090B1C #171D4B #252F7A #3441A9

Accessibility & contrast

On white

15.98
#171D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D4B
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D4B#FFFFFF#000000##FFFFFF
##171D4B1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171d4b;
/* rgb */ color: rgb(23, 29, 75);
/* oklch */ color: oklch(25.6% 0.085 273.3);
Tailwind
colors: {
  custom: {
    50: '#5b587e',
    500: '#171d4b',
    950: '#000000',
  },
}
SCSS
$custom: #171d4b;
$custom-light: #5b587e;
$custom-dark: #000000;
JSON
{
  "hex": "#171d4b",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 233.077,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25589,
    "c": 0.0848,
    "h": 273.3
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#171D4B
secondary
#827A3C
accent
#CC4BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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