Layer's icons may have different colors, as e.g. in the “A4 leaflet 3-fold Roll” document template:
A layer's icon color is repeated in the status bar, too (near the layer's name):
But in the “Layers and Objects” dialog there is not an option for changing it, nor in the layer's context menu:
How to change it?