The dye works by binding to specific cellular components. Nile Blue has an affinity for lipid-rich structures and can differentiate between neutral lipids and phospholipids. When applied to a specimen, it stains neutral lipids blue and phospholipids pink. This differential staining allows researchers to identify and study various lipid-containing structures within the cells.