Puffers getting dark and curling their tails is a sign of stress. How long have you had him? Is water quality ok? Mine was dark for the first month I had him, but he came around. Is he eating?
I have had a df for 2 years and he has done that every night when the lights go off and he finds the place he is going to spend the night at. I would not worry. Good Luck