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 size | Input | Result |
|---|---|---|
| 10px | 368px | 36.8rem |
| 12px | 368px | 30.6667rem |
| 14px | 368px | 26.2857rem |
| 15px | 368px | 24.5333rem |
| 16px | 368px | 23rem |
| 18px | 368px | 20.4444rem |
| 20px | 368px | 18.4rem |
| 22px | 368px | 16.7273rem |
| 24px | 368px | 15.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
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.
