Heat flows through the fin, the temperature decreases from its base to its end, from a combination of the heat sink’s thermal resistance, heat lost due to convection and the temperature of the fin.
Colour can also be a consideration, since black surfaces with a matte finish radiate heat more efficiently than bare metal with a shiny surface.
The most effective heat sink for a specific function will combine good thermal management with suitable mechanical design, taking into account practical needs and cost effectiveness.