Abstract We perform a high precision measurement of the static q q ¯ $$ q\overline{q} $$ potential in three-dimensional SU(N) gauge theory with N = 2, 3 and compare the results to the potential obtained from the effective string theory. In particular, we show that the exponent of the leading order correction in 1/R is 4, as predicted, and obtain accurate results for the continuum limits of the string tension and the non-universal boundary coefficient b ¯ 2 $$ {\overline{b}}_2 $$ , including an extensive analysis of all types of systematic uncertainties. We find that the magnitude of b ¯ 2 $$ {\overline{b}}_2 $$ decreases with increasing N, leading to the possibility of a vanishing b ¯ 2 $$ {\overline{b}}_2 $$ in the large N limit. In the st...