title: Algorithm for parsing hex into color family
body: <p>Does an algorithm exists that will input a color's hex value and output what color family that value belongs to?  For example if i input 3333FF it would identify that as being a shade of blue.  I would need to be able to input any hex value and narrow it down to one of the 24 colors on a standard color wheel plus black, white, and grey. (i would consider black all grey values up to #151515, and white all values down to #F1F1F1)</p>