The slope (\(m\)) of a line passing through two points \((x_1, y_1)\) and \((x_2, y_2)\) can be calculated using the formula:
\[ m = \frac{{y_2 - y_1}}{{x_2 - x_1}} \]
For the points (3, 1) and (-1, 4):
\[ m = \frac{{4 - 1}}{{-1 - 3}} \]
Simplifying:
\[ m = \frac{{3}}{{-4}} \]
So, the slope of the line passing through (3, 1) and (-1, 4) is \(-\frac{3}{4}\).