I had a red one and a purple one in a 29g tank without issue. They napped together at night after lights-out. From what I understand, though, this is unusual.
I added the red one first, and when I added the purple one a few months later, I chose one a little bigger than the red. They squabbled for about half a day and then settled down.