Green and Blue text is harder to read on a white background than the default black. Here are a few alternative ideas:
• grouping the duplicates with horizontal lines instead of colors
• Use a tree-view: https://en.wikipedia.org/wiki/Tree_view
• Allow user-customization for the colors