#171D4F#171D4F

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

Color values

HEX#171D4F
RGBrgb(23, 29, 79)
HSLhsl(234, 55%, 20%)
HSVhsv(234, 71%, 31%)
CMYKcmyk(70.9%, 63.3%, 0%, 69%)
CIE-LABlab(13.38, 15.92, -31.66)
CIE-LCHlch(13.38, 35.44, 296.69°)
OKLaboklab(25.95% 0.0049 -0.0911)
OKLCHoklch(25.95% 0.091 273.1)
XYZxyz(2.2035, 1.6252, 7.5932)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D4F #4F4917
analogous
#17394F #171D4F #2D174F
triadic
#171D4F #4F171D #1D4F17
tetradic
#171D4F #4F1739 #4F4917 #174F2D
square
#171D4F #4F1739 #4F4917 #174F2D
split-complementary
#171D4F #4F2D17 #394F17
monochromatic
#070918 #090C20 #171D4F #252E7E #3340AE

Accessibility & contrast

On white

15.85
#171D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D4F
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D4F#FFFFFF#000000##FFFFFF
##171D4F1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d4f;
/* rgb */ color: rgb(23, 29, 79);
/* oklch */ color: oklch(26.0% 0.091 273.1);
Tailwind
colors: {
  custom: {
    50: '#5c5881',
    500: '#171d4f',
    950: '#000000',
  },
}
SCSS
$custom: #171d4f;
$custom-light: #5c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#171d4f",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 233.571,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.25954,
    "c": 0.09122,
    "h": 273.1
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#171D4F
secondary
#867E3C
accent
#CE4ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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