Lord Shiva is also known as Neelkanth, the legend behind this is that Lord Shiva kept the poison that came out of the churning of the ocean in his throat, due to which his body turned blue.