WCAG 2 level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text.
Large text is defined as 14 point (typically 18.66px) and bold or larger, or 18 point (typically 24px) or larger.