... But for nucleons, the situation is entirely different. The strong nuclear force, instead of dying away with distance, actually gets stronger. This means that if you hold a quark and anti-quark some distance apart, the strong force between them produces a very large positive potential energy, rather like if they were held together by a spring under tension. In fact, if you pull the quark and anti-quark too far away from one another, the tension between them gets so great, that a quark/anti-quark pair pops out of the vacuum between them and instead of a pair of quarks, you now have a pair of mesons.
Anyway, so if you have three quarks, two ups and a down, sort of the minimum-distance configuration they can have is actually so that these gluon "springs" between them actually have quite a lot of tension. So much, in fact, that protons aren't just made out of three quarks, but three quarks plus a whole bunch of quark/anti-quark pairs continually popping in and out of the vacuum. Of course, energy is conserved when these quark/anti-quark pairs pop in and out, so you can think of the extra energy as coming from the tension of these gluon "springs" between the quarks.