The Web Content Accessibility Guidelines (WCAG) colour contrast information is great but it is limited.
You should test and consider more around colour including how colour blindness affects contrast.
Can read the overview of the guidelines here:
https://www.w3.org/TR/2008/REC-WCAG20-20081211/
