Hex to Tailwind: how to map any brand color to the nearest palette shade
Designers hand you a brand hex like #3B82F6-ish, and your Tailwind config has 11 shades per color. Which one is "closest"? Eyeballing it leads to inconsistent UIs. Why simple RGB distance misleads Euclidean distance in RGB treats all channels equally, but human vision doesn't…