In layered navigation whenever a color attribute is selected, the swatch for configurable product is set to the simple product's swatch that is associated with it and is of the filtered color.