frontendhack-logo
370px = 23.125rem

At the default root font size of 16px, 370px is exactly 23.125rem.

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

How to convert 370px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 370px that is 370 ÷ 16 = 23.125rem.

370px is a very large size, typically used for hero headings, containers and big layout dimensions.

370px at different root font sizes

Root font sizeInputResult
10px370px37rem
12px370px30.8333rem
14px370px26.4286rem
15px370px24.6667rem
16px370px23.125rem
18px370px20.5556rem
20px370px18.5rem
22px370px16.8182rem
24px370px15.4167rem

CSS examples

font-size: 23.125rem; /* 370px */
padding: 23.125rem;
margin-bottom: 23.125rem;
width: 23.125rem;

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

font-size: 370px;
padding: 370px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
370px23.125rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

370px equals 23.125rem when the root font size is the browser default of 16px. The calculation is 370 ÷ 16 = 23.125.

23.125rem equals 370px at a 16px root font size (23.125 × 16 = 370).

Yes. If the root font size is 18px, 370px equals 20.5556rem, and at 20px it equals 18.5rem. 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.