Dark roofs absorb sunlight and convert it into heat, warming both the building and the surrounding air. White roofs, on the other hand, have a higher albedo, meaning they reflect more sunlight. This keeps the roof surface and the interiors cooler, reducing the need for air conditioning and lowering electricity demand.