frontendhack-logo
380px = 23.75rem

At the default root font size of 16px, 380px is exactly 23.75rem.

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

How to convert 380px to rem

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

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

380px at different root font sizes

Root font sizeInputResult
10px380px38rem
12px380px31.6667rem
14px380px27.1429rem
15px380px25.3333rem
16px380px23.75rem
18px380px21.1111rem
20px380px19rem
22px380px17.2727rem
24px380px15.8333rem

CSS examples

font-size: 23.75rem; /* 380px */
padding: 23.75rem;
margin-bottom: 23.75rem;
width: 23.75rem;

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

font-size: 380px;
padding: 380px;

Tailwind CSS equivalent

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

Nearby values

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

Frequently Asked Questions

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

23.75rem equals 380px at a 16px root font size (23.75 × 16 = 380).

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