Take a look at this amazing library. You may now the effect from Googles image search.

The library take´s the "primary color" of an image, and set it to the image container as background color. Similar to the tv technique "Ambient Light".