At the default root font size of 16px, 374px is exactly 23.375rem.
Calculation based on a root font-size of 16 pixels.
How to convert 374px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 374px that is 374 ÷ 16 = 23.375rem.
374px is a very large size, typically used for hero headings, containers and big layout dimensions.
374px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 374px | 37.4rem |
| 12px | 374px | 31.1667rem |
| 14px | 374px | 26.7143rem |
| 15px | 374px | 24.9333rem |
| 16px | 374px | 23.375rem |
| 18px | 374px | 20.7778rem |
| 20px | 374px | 18.7rem |
| 22px | 374px | 17rem |
| 24px | 374px | 15.5833rem |
CSS examples
font-size: 23.375rem; /* 374px */
padding: 23.375rem;
margin-bottom: 23.375rem;
width: 23.375rem;The same values in pixels, if you need a fixed size:
font-size: 374px;
padding: 374px;Tailwind CSS equivalent
23.375rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[23.375rem] or text-[23.375rem].
Nearby values
Frequently Asked Questions
374px equals 23.375rem when the root font size is the browser default of 16px. The calculation is 374 ÷ 16 = 23.375.
23.375rem equals 374px at a 16px root font size (23.375 × 16 = 374).
Yes. If the root font size is 18px, 374px equals 20.7778rem, and at 20px it equals 18.7rem. The pixel value itself never changes, only the rem equivalent. 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.
