Hayes turned professional following his junior season at Boston College and scored 109 points (54 goals, 55 assists) in 334 regular-season games with the Blackhawks, Florida Panthers, Boston Bruins and Devils. He did not have a point in two Stanley Cup Playoff games, which came as a rookie with Chicago in 2011-12.
"We are heartbroken to learn of the passing of Jimmy Hayes," the Blackhawks said in a statement. "His warm personality made an immediate impact in the locker room and with our fans. We're proud of the memories he made in Chicago, including making his NHL debut in 2011. Sending our thoughts and prayers to his family."
Bruins captain Patrice Bergeron said, "I'm devastated to learn of the passing of my friend Jimmy Hayes. It was a pleasure getting to know Jimmy, and he was such a joy to be around both on and off the ice. I'll always remember his big smile -- he was so positive and full of life. I'm going to really miss that. We've lost a great person.
"My family and I send our heartfelt condolences to his wife Kristen, their two young boys, his brother Kevin, and the rest of his family during this difficult time."
Hayes last played in the NHL with New Jersey during the 2017-18 season, when he scored nine points (three goals, six assists) in 33 games.
"We are thinking of the Hayes family and friends during this difficult time," the Devils said in a statement. "His infectious personality and easygoing nature were contagious to all who spent time with him. He had a tremendous ability to make everyone feel welcome.
"You will be missed, Jimmy."
The Panthers said in a statement, "We are devastated to learn of the passing of Jimmy Hayes. Jimmy was a beloved teammate who lit up the locker room with his laughter. Our thoughts are with his wife Kristen, his sons Beau and Mac, his brother, Kevin, and the Hayes, Tkachuk, & Fitzgerald families. RIP, Jimmy."
His last professional season was with Wilkes-Barre/Scranton, the Penguins' American Hockey League affiliate, in 2018-19.
"The NHL family mourns the passing of Jimmy Hayes, who appeared in over 300 games with the Blackhawks, Panthers, Devils and his hometown Bruins," the League said in a statement. "Our thoughts and prayers are with his family."