The Eyedropper tool can sample colors from anywhere in an image and add them to your Swatches panel.

-
Use the Options Bar to customize tool settings, like Sample Size and Sample, to get the effect you want.
Use the Options Bar to customize tool settings, like Sample Size and Sample, to get the effect you want.