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 size | Input | Result |
|---|---|---|
| 10px | 384px | 38.4rem |
| 12px | 384px | 32rem |
| 14px | 384px | 27.4286rem |
| 15px | 384px | 25.6rem |
| 16px | 384px | 24rem |
| 18px | 384px | 21.3333rem |
| 20px | 384px | 19.2rem |
| 22px | 384px | 17.4545rem |
| 24px | 384px | 16rem |
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
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.
