Blue dye is obtained by crafting lapis lazuli or cornflowers in a crafting table. It is primarily used to dye wool, leather armor, beds, glass, terracotta, and candles. Blue dye can also be used in banner patterns, firework stars, and shulker box customization.