What are these wire connectors called?
Based on the feedback I got in the comments, I purchased some pin and socket connectors. They ended up being bigger than the ones already present, but they still fit and work for the intended purpose.