Tableau doesn't have an option to color Headers
of Discrete (Blue) Pills on Rows / Columns.
It does have a Color for Marks on a view.
So to get the effect you want one would end up
rendering a bunch of Marks with colored Text Labels.
The rendering performance would drop dramatically.
Please find the attached as an example.
TextTable_v10.3_YF.twbx 1.4 MB