Remove colors as gradient

Could you suggest how the colorscale could be altered to set it as solid colors as in the image rather than a gradient ?