When it comes to the longest-dated municipal bonds, value is in the eye of the beholder.

The securities are delivering the best returns in the municipal market as yields approaching five-decade lows lead investors to take on more risk. The gains have driven yields on top-rated 30-year munis to 0.92 percentage point above debt due in 10 years, the smallest gap since December 2012, data compiled by Bloomberg show.