Check your colors, not your luck.
A real calculation for your foreground and background.
15.48:1
Meets the 4.5:1 contrast heuristic on this background.
This is an sRGB relative-luminance calculation, not a formal barcode quality grade. A high ratio does not guarantee QR decoding. Test the actual rendered code and a physical sample.