You may want to take some data re-shaping, namely,
do Pivot (the Tableau term) your Columns 1, 2 and 3.
You can even use Tableau Prep for that ;-)
With the Pivot your Measure Names / Measure Values combo
would become a perfect pair of Dimension & Measure.
And colouring would be made using just a single Table Calc.
Please find the attached.