1. Aposematic organisms exhibit warning signals (primary defences) coupled with secondary defences, and competing for the same resources may lead to trade-offs in resource allocation. For animals that synthesise their chemical compounds de novo, resources, particularly proteins, can be expected to influence the investment in chemical defences and nitrogen-based warning colours such as melanin. 2. We manipulated protein availability in the larval diet of the wood tiger moth, Arctia plantaginis, to test how early life resource availability influences relevant life history traits, pigment production, and chemical defences. According to the resource allocation hypothesis, we expected individuals with less melanin (i.e., larger warning signals) to have more resources to allocate to chemical defences. 3. Then, we tested the efficacy of chemical defences of moths raised on diets with different protein content by presenting oat baits soaked with moth defensive fluids to wild-caught avian predators and observed their responses. 4. Early-resource environment affected chemical defences and developmental time of male moths but did not affect melanin expression in the wings. The amount of melanin in the wings, however, correlated with chemical defences: irrespective of the diet they were raised on, more-melanised individuals (i.e., smaller warning signal) produced more deterrent defensive fluids. Thus, the negative correlation between primary and secondary defences arises from more melanised individuals having better chemical defences, and not from resource allocation. 5. We conclude that the resources available in early life have an important role in the efficacy of chemical defences, but melanin-based warning colours are less sensitive to the variability of resources than other fitness-related traits.