Living crabs are usually blue, which will turn red when we cook them. This is mainly because there is a pigment called astaxanthin in crab. Astaxanthin was originally red, but it can combine with protein, so it is difficult to show its original color. When we cook the crab, astaxanthin will be separated from protein, astaxanthin will show its original color, and the crab will turn red.