To prevent pesto from turning dark or browning, blanch the basil leaves before making. You can also add a layer of oil on top of the pesto for storage so it takes longer to oxidize.