What Color Are Crabs and Why Do They Turn Red?

Uncover the diverse natural colors of crabs and the scientific processes behind their vibrant hues, including why they turn red when cooked.

Living crabs come in a striking range of colors, from olive green and muddy brown to vivid blue, deep red, and even pale white, depending on the species and habitat. The familiar bright red most people picture is actually the color of a cooked crab, not a living one. That transformation happens because heat destroys a protein called crustacyanin, which normally binds to a pigment called astaxanthin and shifts its color. Once the protein unravels, the astaxanthin is released, and its natural orange-red hue takes over. The story behind crab color is richer than that single kitchen moment, though, involving diet, shell architecture, camouflage, mate selection, and even ultraviolet protection.

The Surprising Palette of Living Crabs

If you have only ever seen crabs on a plate, you might assume they are all red. In reality, most crab species are anything but. The European shore crab, one of the most studied species on the planet, ranges from bright green in recently molted individuals to deep rusty red in crabs that have gone a long time between molts. Blue crabs along the Atlantic coast of North America carry blue-green tones on their claws and shell. Christmas Island red crabs are a vivid scarlet even while alive. Many tropical species display yellows, oranges, purples, and patterns of contrasting spots or stripes.

Even within a single species, color varies by age, sex, and surroundings. Research on shore crabs found significant differences in color, brightness, and patterning among crabs collected from different habitats. Juveniles were more colorful and varied than adults, which tended to be darker and less saturated. As crabs grow larger, their coloration converges toward a narrower, duller range. That shift is not random; it reflects the interplay of pigment chemistry, shell structure, and ecological pressures that shape how each crab looks to the world around it.

The Pigment at the Heart of It All

Astaxanthin is the main pigment responsible for the red-orange hues we associate with cooked shellfish. It belongs to a family of compounds called carotenoids, which are abundant in algae and microorganisms. Crabs cannot manufacture astaxanthin themselves; they get it from their diet, absorbing it from the algae, plankton, and smaller animals they eat. Once inside the body, astaxanthin accumulates in the shell, the organs, and the eggs.

On its own and in dilute solution, astaxanthin absorbs light around 472 nanometers and looks orange-red. But in a living crustacean, much of the astaxanthin is not on its own. It is bound tightly inside a protein complex called crustacyanin. When astaxanthin sits inside crustacyanin, the wavelength of light the complex absorbs shifts dramatically, from around 472 nm all the way up to about 632 nm. That shift moves the apparent color from orange-red to a deep slate blue. This is why so many living crabs and lobsters look blue, green, or dark brown rather than red: their astaxanthin is locked up in crustacyanin, and the complex absorbs a completely different slice of the visible spectrum.

Crustacyanin is not found throughout the animal kingdom. Biochemical and genetic surveys have shown that it is restricted to malacostracan crustaceans, the group that includes crabs, lobsters, shrimp, and their relatives. Within that group it is widespread, which helps explain why the “cook it and it turns red” phenomenon is so consistent across different shellfish.

Why Cooking Turns a Crab Red

The moment you drop a crab into boiling water, the heat starts denaturing proteins, including crustacyanin. As crustacyanin unfolds and loses its three-dimensional shape, it can no longer hold onto the astaxanthin molecules nestled inside it. The freed astaxanthin reverts to its default absorption profile, and the shell turns the bright orange-red color that astaxanthin displays when it is unbound. The process is essentially irreversible under kitchen conditions, which is why the red color stays after the crab cools down.

Interestingly, researchers have found that extracted crustacyanin will turn red simply from being dried out, without any heat at all. When water is added back, the complex rehydrates and returns to blue. That observation reveals that the protein’s shape, not just temperature, is the critical factor. Anything that disrupts the protein’s structure releases the pigment. Heat is just the most common way we encounter that disruption in everyday life.

You do not even need heat to push this color change. High-pressure processing, a technique used in food manufacturing, can also denature shell proteins. When blue crab meat was treated with very high pressure, the resulting product had a lighter, more reddish color compared to untreated meat, for much the same reason: pressure unfolded the proteins and freed astaxanthin.

Structural Color and Shell Architecture

Pigment chemistry is only part of the story. The physical structure of a crab’s shell also plays a role in which colors reach your eye. Research on blue crab shells found that the cuticle contains complex networks of tiny pore canals arranged in grating-like patterns of parallel mineral nanopillars. These nanoscale structures are small enough to interact with visible light, essentially acting as filters that guide certain wavelengths through while blocking others.

The dimensions of these pore canals differ between shell regions that appear blue, red, and white. Blue shell areas show absorption peaks between 550 and 650 nm, red areas absorb between 400 and 500 nm, and white areas absorb above 600 nm. Critically, each color region has distinct canal widths and spacing between rows, resulting in different optical properties. So a blue crab’s shell is blue not only because of crustacyanin-bound astaxanthin but also because the shell’s physical nanostructure selectively transmits light in a way that reinforces the blue appearance. This “structural color” mechanism is common in butterflies and beetles, and the crab shell turns out to employ something similar.

How Diet and Molting Reshape Color

Because crabs cannot make astaxanthin internally, what they eat has a direct impact on how colorful they are. Feeding trials on swimming crabs showed that adding astaxanthin to the diet increased both the concentration of pigment in the shell and the measurable redness of the cooked product. Diets containing about 30 to 60 milligrams of astaxanthin per kilogram of feed produced the best balance of shell color, antioxidant benefit, and nutritional value. Similar effects have been documented in Chinese mitten crabs, where supplementing the diet with astaxanthin alongside certain fatty acids boosted pigment deposition in the ovaries and organs.

Molting introduces another layer of change. When a crab sheds its old shell and grows a new one, the fresh exoskeleton starts with relatively little pigment accumulation. Over time, pigments build up in the shell. In shore crabs, the carapace starts green after a molt and gradually shifts toward red as the inter-molt period drags on. For decades, researchers assumed the reddening was simply a sign that a crab was overdue for a molt. More recent work suggests the color change is driven by the gradual breakdown of pigments by sunlight, a process called photo-denaturation. In other words, the shell’s protein-pigment complexes slowly degrade under UV exposure, releasing free astaxanthin bit by bit and shifting the color toward red, even while the crab is alive.

Camouflage and the Eyes of Predators

For many crab species, blending in is a matter of survival, and color is their primary tool. Shore crabs from rocky habitats tend to be darker and more mottled than crabs from sandy mudflats, matching the visual texture of their surroundings. This background matching is one of the best-supported functions of crab coloration across species, along with disruptive patterning, where contrasting markings break up the outline of the body so predators have a harder time recognizing the shape as prey.

Who is doing the looking matters, too. Vision modeling studies have shown that crabs appear more colorful to birds, which see four color channels (including ultraviolet), than to fish, which typically see only two. Fish tend to perceive the same crabs as lighter and with coarser patterning. That means a crab’s camouflage can be effective against one predator and less effective against another, depending entirely on the predator’s visual system. Juvenile crabs, which are smaller and more vulnerable, show the most color variation, possibly because the selective pressure from diverse predators is highest when the crab is at its most bite-sized.

Color as a Signal to Other Crabs

Camouflage is not the only function. In some species, color doubles as a billboard. Male fiddler crabs are famous for their oversized claws, and the color of that claw turns out to matter for attracting females. In experiments with the fiddler crab Leptuca leptodactyla, females significantly preferred males whose enlarged claws were brighter and had lower green saturation. Researchers measured the reflectance from each male’s claw with a spectrometer and found that brightness and saturation both appeared to carry information about male quality.

Beyond mate choice, color can serve as a warning. Some brightly colored crabs are toxic or unpalatable, and their conspicuous appearance discourages would-be predators, a strategy known as aposematism. Contest competition is another arena where color plays a role: in species where rivals size each other up before fighting, shell color and claw color can signal dominance or fighting ability. A broad review of crab coloration concluded that camouflage and intraspecific signaling are the two best-supported functions, though physiological side effects of pigmentation may also contribute in some species.

Pigment Dispersion and UV Protection

Crabs carry pigment not only in their hard shell but also in specialized cells called chromatophores, which can spread or concentrate pigment granules in response to stimuli. When crabs are exposed to ultraviolet radiation, their chromatophores disperse pigment outward, darkening the skin and providing a kind of instant sunscreen. Experiments on the crab Chasmagnathus granulata showed that UVA was more effective than UVB at triggering this response, and the amount of pigment dispersion increased with the dose of radiation.

Unlike tanning in humans, which protects against future UV exposure but does little during the current bout, the pigment-dispersion response in crabs acts during the exposure itself. It is an immediate defense. This may be especially important for intertidal crabs that are exposed to direct sunlight at low tide for hours at a time. The response also hints that color is not just about how a crab looks to others; it has a direct physiological function in protecting the animal’s tissues from radiation damage.

Color in the Deep Sea

In the deep ocean, where sunlight fades to near-total darkness, the rules change. Many deep-sea organisms are either red or black, because those colors are effectively invisible under the dim blue light that filters down from the surface. Red wavelengths are absorbed by water quickly, so a red animal at depth reflects almost no light and looks black. Surveys of deep-sea species, including crabs, found that body coloration was generally uniform but that many crabs displayed striking patterns that may serve to break up their outlines, a form of disruptive camouflage even in near-darkness.

The threat at depth is not ambient light but bioluminescence. Many deep-sea predators produce their own light to scan for prey. Researchers have tested whether deep-sea coloration is optimized against being seen under bioluminescent “searchlights” in addition to ambient conditions. The presence of disruptive patterning on crabs, even at great depth, suggests that the visual arms race between predator and prey continues well beyond the reach of the sun.

Why Color Matters to Crab Farmers and Seafood Buyers

Shell color is not just a biological curiosity; it is a commercial factor. Consumers associate bright red or orange shells with freshness and quality, so aquaculture operations have a financial incentive to produce vividly colored crabs. Supplementing crab feed with astaxanthin is the most direct approach. In swimming crabs, dietary astaxanthin increased the redness of cooked shells in a dose-dependent way, and the shell redness correlated with the total astaxanthin stored in the body. The pigment also reduced oxidative stress and boosted levels of beneficial fatty acids, so the color boost came with genuine nutritional improvements rather than being purely cosmetic.

Astaxanthin itself has become a commercial product in its own right. Extracted from shellfish waste, algae, or produced synthetically, it is sold as a dietary supplement, a feed additive for farmed salmon and shrimp, and even a food coloring. Blue crab shell waste, which would otherwise be discarded by processing plants, turns out to be a significant source of extractable astaxanthin. The same pigment that makes a cooked crab look appetizing on a dinner plate is also the reason farmed salmon flesh is pink: without carotenoids in their feed, farmed salmon would be gray.

For consumers, the practical takeaway is that the intensity of red on a cooked crab’s shell reflects how much astaxanthin was in the animal’s diet during its life, not how fresh the crab is at the point of sale. A pale-shelled cooked crab is not stale; it simply had lower pigment levels. And a brilliantly red shell does not guarantee the meat inside is better, though higher astaxanthin levels in the tissue are associated with improved antioxidant status and a marginally better fatty acid profile.