Please note that the colors shown in your invoice is based on the ones you set for your brand in Settings-> Design Customisation.
To find the hex code for a your preferred colors, you can use link.
Below image shows the effective fields of Design Customisation in your invoice choice of colors:
Below you can find the guide of sample presented invoice:
This is a sample invoice that shows how the effective fields will be reflected in the invoice.