The Queen is believed by some to be a caricature of Queen Victoria, with elements of reality that Dodgson felt correctly would make her at once instantly recognizable to parents reading the story to children, and also fantastical enough to make her unrecognizable to children.
The Queen may also be a reference to Queen Margaret of the House of Lancaster.