Are you sure you inserted the new RAM in the
same slots? I don't know about this particular iMac, but sometimes the slotting is not adjacent. In other words, for fastest RAM response, you need to match the original and/or insert new RAM in the other 2 slots that are free. This video may help if you don't recall where the originals were inserted...
Are you sure you matched the RAM details (speed, type, etc)
EXACTLY? Not just any old RAM will do, even if it perfectly fits into the slots. I hopped onto
Other World and it appears the 2019 27" uses 2666MHz DDR4 PC4-21300 RAM. Apple's own website says 21333 (I didn't dig in further but this might be a difference between Core I5 vs. Core I7 CPUs but that's just a wild guess) and adds unbuffered and nonparty. Is that what you bought or were 1 or more of those details different?
The key to success here is getting perfect replacement RAM (details) and inserting in the exact same slots OR getting 4 sticks of perfect replacement RAM (details) and filling all 4 slots.
With a goal of 32GB total, the difference in 2 sticks vs. 4 is the ability to further expand RAM later. For example, you could jump to 32GB now in 2 sticks and- if you discover you need more- you still have 2 RAM slots open for more. Also, if the original 8GB is in 2 slots, you could just leave it, add 2 sticks for 32GB more and enjoy a total of 40GB RAM for now. Again, key here is to know which slots are bank A vs. bank B. So you need to dig in and be sure mixed RAM is in the right slots. That may be adjacent slots (like 1 & 2 as A and 3 & 4 as B) or it might be odds (1 & 3) and evens (2 & 4). Do the research if you don't know and be sure to know which is right for that iMac.