Blue is the hardest food coloring to make from natural ingredients, but three kitchen-friendly sources can get you there: butterfly pea flowers, red cabbage with baking soda, and blue spirulina powder. Each method produces a different shade, holds up differently in recipes, and takes anywhere from five minutes to half an hour.
Butterfly Pea Flowers: The Easiest True Blue
Butterfly pea flowers (Clitoria ternatea) produce the most vivid, straightforward blue of any natural source. The dried flowers are deep lavender-blue, and steeping them in hot water releases a rich blue pigment almost immediately. You can find dried butterfly pea flowers online or at Asian grocery stores, often sold for tea.
To make the coloring, add about 1 tablespoon of dried flowers (or 2 tablespoons of fresh petals) to half a cup of just-boiled water. Let them steep for 10 to 20 minutes, stirring occasionally. The longer they sit, the more concentrated the color. Strain out the flowers and you have a liquid blue dye ready to use. For a more intense result, use less water or add more flowers. Research on butterfly pea extraction found that concentrations around 0.6% to 0.8% dried petal powder by weight yielded the strongest pigment, so don’t be shy with the petals.
One fun property of butterfly pea extract: it changes color with pH. Add a squeeze of lemon juice and it shifts toward purple or pink. Keep it neutral or slightly alkaline and it stays blue. This makes it great for color-changing drinks but means you should be mindful of acidic ingredients in your recipe.
Butterfly pea flower extract is permanently listed by the FDA as an approved color additive for a wide range of foods, including beverages, candy, ice cream, cereals, chips, and yogurt preparations. It’s considered safe with no certification required.
Red Cabbage With Baking Soda
Red cabbage juice is naturally purple, but a small amount of baking soda shifts it to a striking blue. This works because the pigments in red cabbage (anthocyanins) change color depending on acidity. In neutral or slightly alkaline conditions, they turn blue.
Here’s the process: chop half a head of red cabbage into small pieces and boil them in about 2 cups of water for 20 to 30 minutes. The water will turn deep purple. Strain the liquid into a clean jar, then stir in baking soda a pinch at a time. You’ll see the color shift from purple to blue almost instantly. Start with a quarter teaspoon and add more until you reach the shade you want. Too much baking soda will push the color toward green and can leave a slightly soapy taste, so go slowly.
The tradeoff with this method is flavor. Red cabbage dye has a mild vegetable taste that works fine in frosting, rice, or smoothies where other flavors dominate, but it can be noticeable in delicate recipes. The baking soda also introduces a slight alkaline flavor. Use just enough to get the color and no more.
Blue Spirulina Powder
Blue spirulina isn’t the same as regular green spirulina. It’s an extract of the blue pigment (phycocyanin) from spirulina algae, sold as a fine blue powder with minimal taste. You can dissolve it directly into liquids, frostings, or batters for a vibrant blue.
To make a liquid coloring, whisk 1 teaspoon of blue spirulina powder into 2 tablespoons of cool water until smooth. That’s it. The color is immediate and intense.
The major limitation is heat. Phycocyanin begins degrading rapidly above 45°C (113°F), and exposure to higher temperatures causes significant, visible color loss. This means blue spirulina works beautifully in smoothies, no-bake desserts, frostings, ice cream, and cold drinks, but it will fade or turn grayish-green in baked goods, cooked sauces, or anything that spends time above a low simmer. If you want blue in a cake, add the spirulina to the frosting rather than the batter.
How to Concentrate and Store Your Dye
Homemade liquid dyes are dilute compared to store-bought food coloring, so you may need to use more to get the same intensity. To concentrate any of the liquid methods above, simmer the strained liquid on very low heat until it reduces by half or more. For butterfly pea and red cabbage extracts, this works well since the pigments tolerate moderate heat. For spirulina, skip the reduction and simply use less water when mixing the powder.
Storage matters because natural pigments break down over time. Keep your liquid dye in a sealed glass jar in the refrigerator. Butterfly pea and red cabbage extracts will stay vibrant for about one to two weeks refrigerated. Adding a few drops of lemon juice to red cabbage dye (just enough to maintain the blue without tipping it purple) can help preserve it slightly longer, though it will shift the hue. For the longest shelf life, freeze the liquid in ice cube trays and thaw individual portions as needed. Frozen, natural dyes can hold their color for several months.
Blue spirulina powder, stored dry in a sealed container away from light and heat, lasts six months to a year without losing much vibrancy. Once mixed into liquid, use it within a week.
Which Method Works Best for Different Recipes
- Frosting and icing: Blue spirulina gives the brightest color with no flavor impact. Butterfly pea extract also works but adds more liquid, which can thin buttercream.
- Drinks and cocktails: Butterfly pea flower extract is ideal. It dissolves cleanly, tastes neutral, and the pH-shifting color change adds visual drama.
- Rice, pasta, and dumplings: Butterfly pea extract has a long tradition in Southeast Asian cooking for coloring rice and noodles. Replace some of the cooking water with the extract.
- Baked goods: Red cabbage extract holds up to oven temperatures better than spirulina. Use the baking soda method and fold the liquid into your batter, reducing other liquids slightly to compensate.
- Easter eggs and decorative uses: Red cabbage is the cheapest and most accessible option. Boil the cabbage, add baking soda, and soak the eggs directly in the dye.
Natural blue dyes are never quite as punchy as synthetic ones, so expect softer, more pastel tones unless you use a very concentrated extract. Layering methods helps: for example, tinting white frosting with spirulina powder and then adding a small amount of concentrated butterfly pea extract can build a deeper blue than either source alone.

