frontendhack-logo
3.1875rem = 51px

At the default root font size of 16px, 3.1875rem is exactly 51px.

Calculation based on a root font-size of 16 pixels.

How to convert 3.1875rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 3.1875rem that is 3.1875 × 16 = 51px.

51px is a large size, common for headings, section padding and generous layout gaps.

3.1875rem at different root font sizes

Root font sizeInputResult
10px3.1875rem31.875px
12px3.1875rem38.25px
14px3.1875rem44.625px
15px3.1875rem47.8125px
16px3.1875rem51px
18px3.1875rem57.375px
20px3.1875rem63.75px
22px3.1875rem70.125px
24px3.1875rem76.5px

CSS examples

font-size: 3.1875rem; /* 51px */
padding: 3.1875rem;
margin-bottom: 3.1875rem;
width: 3.1875rem;

The same values in pixels, if you need a fixed size:

font-size: 51px;
padding: 51px;

Tailwind CSS equivalent

3.1875rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[3.1875rem] or text-[3.1875rem].

Nearby values

REMPixels
2.9375rem47px
3rem48px
3.0625rem49px
3.1rem49.6px
3.125rem50px
3.1875rem51px
3.2rem51.2px
3.25rem52px
3.3rem52.8px
3.3125rem53px
3.375rem54px

Frequently Asked Questions

3.1875rem equals 51px when the root font size is the browser default of 16px. The calculation is 3.1875 × 16 = 51.

51px equals 3.1875rem at a 16px root font size (51 ÷ 16 = 3.1875).

Yes. rem is relative to the root font size, so 3.1875rem becomes 57.375px at an 18px root and 63.75px at a 20px root. Use the base font size field above to try any value.

Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.