Which number you actually need
There is no single pass mark, which is why a tool that shows one badge is not much help. The level depends on the size and weight of the text.
AA, the level nearly every policy and contract specifies, asks for 4.5:1 on normal text and 3:1 on large text. Large means 24 pixels and up, or 18.66 pixels if it is bold. AAA raises those to 7:1 and 4.5:1. Separately, buttons, form field borders and meaningful icons need 3:1 under a rule of their own.
So the same pair of colors can be perfectly fine for a heading and illegal for a caption, and both answers are shown here rather than one of them.