$$\require{cancel}$$
The upward force due to surface tension is $$2 \pi a \gamma \cos \theta$$ where $$a$$ is the inside radius of the tube, and, if we neglect the very small mass of the liquid in the meniscus (the curved surface at the top of the liquid column), the weight of the liquid column is $$\pi a^2 h \rho g$$, and therefore
$h = \frac{2 \gamma \cos \theta }{\rho g a }. \tag{20.2.6}\label{eq:20.2.6}$
Of course if $$\theta$$ is obtuse (as with mercury in contact with glass), $$h$$ will be negative, and the level of the mercury in the tube will be below the outside level.