frontendhack-logo
384px = 24rem

At the default root font size of 16px, 384px is exactly 24rem.

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

How to convert 384px to rem

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

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

384px at different root font sizes

Root font sizeInputResult
10px384px38.4rem
12px384px32rem
14px384px27.4286rem
15px384px25.6rem
16px384px24rem
18px384px21.3333rem
20px384px19.2rem
22px384px17.4545rem
24px384px16rem

CSS examples

font-size: 24rem; /* 384px */
padding: 24rem;
margin-bottom: 24rem;
width: 24rem;

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

font-size: 384px;
padding: 384px;

Tailwind CSS equivalent

The default spacing scale has a step for 24rem: use classes like p-96, m-96, gap-96, w-96 and h-96.

Nearby values

PixelsREM
384px24rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

24rem equals 384px at a 16px root font size (24 × 16 = 384).

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