#171D41#171D41

#171D41 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.068 H 273.3°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#171D41
RGBrgb(23, 29, 65)
HSLhsl(231, 48%, 17%)
HSVhsv(231, 65%, 25%)
CMYKcmyk(64.6%, 55.4%, 0%, 74.5%)
CIE-LABlab(12.24, 10.23, -23.81)
CIE-LCHlch(12.24, 25.92, 293.25°)
OKLaboklab(24.73% 0.0039 -0.068)
OKLCHoklch(24.73% 0.068 273.3)
XYZxyz(1.7465, 1.4424, 5.1864)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D41 #413B17
analogous
#173241 #171D41 #261741
triadic
#171D41 #41171D #1D4117
tetradic
#171D41 #411732 #413B17 #174126
square
#171D41 #411732 #413B17 #174126
split-complementary
#171D41 #412617 #324117
monochromatic
#080A17 #080A17 #171D41 #27316E #37459B

Accessibility & contrast

On white

16.30
#171D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#171D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D41
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D41#FFFFFF#000000##FFFFFF
##171D411.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2242
Deuteranopia (green-blind)
#061E40
Tritanopia (blue-blind)
#01252B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171d41;
/* rgb */ color: rgb(23, 29, 65);
/* oklch */ color: oklch(24.7% 0.068 273.3);
Tailwind
colors: {
  custom: {
    50: '#585876',
    500: '#171d41',
    950: '#000000',
  },
}
SCSS
$custom: #171d41;
$custom-light: #585876;
$custom-dark: #000000;
JSON
{
  "hex": "#171d41",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 65
  },
  "hsl": {
    "h": 231.429,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2473,
    "c": 0.06811,
    "h": 273.3
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#171D41
secondary
#786F3C
accent
#C450D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #171D41

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

Preview Lab → · Contrast checker → · Palette generator →

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