Here's another way. Use the mosaic filter first and then use the eyedropper tool. (Fewer colours to choose from!)