the actual dress was black and blue, it’s just the lighting and shitty quality of the photo playing tricks on your perception of it.
Have you seen those optical illusions where there will be boxes with the same color but one looks darker because it’s drawn to look like it’s in a shadow? it’s a similar concept.