I'm pretty sure it is porphyrin. It can be a mucous form too.
I guess a photograph would have helped.

Either way, I'm really sorry the little one passed