J.K. Rowling was inspired by the Freemasons’ logo.
She’s even said it herself.
That’s where she got the idea for the three Deathly Hallows.
The symbol looks a lot like the square-and-compass logo.