Materials by layer

Not sure how to change material color by layer, if I change materials of objects in one layer, all material color is changed regardless of layer.