Project color in dark mode

When I set a custom color for the project in dark mode, the text of the color will appear way lighter than it was assigned. I know it is to accustom the dark background but can we get how the color is shifted so I can adjust the colors more precisely?