To select a solid color from a pattern or gradient, hold Shift while you select the color. The fill color will be set to match the color of the pixel that was clicked on.
See Also
Sampling Colors Using the Eyedropper
Using the Eyedropper
Setting Stroke Colors with the Eyedropper
Adding a Fill Selected with the Eyedropper to a Swatch Table