#171D4E#171D4E

#171D4E is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.090 H 273.1°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#171D4E
RGBrgb(23, 29, 78)
HSLhsl(233, 54%, 20%)
HSVhsv(233, 71%, 31%)
CMYKcmyk(70.5%, 62.8%, 0%, 69.4%)
CIE-LABlab(13.30, 15.51, -31.12)
CIE-LCHlch(13.30, 34.77, 296.50°)
OKLaboklab(25.86% 0.0049 -0.0895)
OKLCHoklch(25.86% 0.09 273.1)
XYZxyz(2.1674, 1.6108, 7.4029)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D4E #4E4817
analogous
#17384E #171D4E #2D174E
triadic
#171D4E #4E171D #1D4E17
tetradic
#171D4E #4E1738 #4E4817 #174E2D
square
#171D4E #4E1738 #4E4817 #174E2D
split-complementary
#171D4E #4E2D17 #384E17
monochromatic
#070918 #090B1F #171D4E #252F7D #3340AD

Accessibility & contrast

On white

15.88
#171D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D4E
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D4E#FFFFFF#000000##FFFFFF
##171D4E1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171d4e;
/* rgb */ color: rgb(23, 29, 78);
/* oklch */ color: oklch(25.9% 0.090 273.1);
Tailwind
colors: {
  custom: {
    50: '#5c5880',
    500: '#171d4e',
    950: '#000000',
  },
}
SCSS
$custom: #171d4e;
$custom-light: #5c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#171d4e",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 233.455,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25862,
    "c": 0.08962,
    "h": 273.1
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#171D4E
secondary
#857D3C
accent
#CE4ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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