frontendhack-logo
368px = 23rem

At the default root font size of 16px, 368px is exactly 23rem.

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

How to convert 368px to rem

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

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

368px at different root font sizes

Root font sizeInputResult
10px368px36.8rem
12px368px30.6667rem
14px368px26.2857rem
15px368px24.5333rem
16px368px23rem
18px368px20.4444rem
20px368px18.4rem
22px368px16.7273rem
24px368px15.3333rem

CSS examples

font-size: 23rem; /* 368px */
padding: 23rem;
margin-bottom: 23rem;
width: 23rem;

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

font-size: 368px;
padding: 368px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
368px23rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

23rem equals 368px at a 16px root font size (23 × 16 = 368).

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