neutral-300
#d4d4d4Tailwind CSS v4.3.3 neutral-300 is oklch(87% 0 none) in OKLCH, the format Tailwind uses, and #d4d4d4 in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-neutral-300/50.
Text on neutral-300
- Aawhite1.48:1Hard to read
- Aablack14.17:1Readable · AA
- Aaneutral-95013.36:1Readable · AA
Most readable text from the neutral scale: neutral-950
Tailwind neutral scale
Step 300 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind neutral-300?
neutral-300 is #d4d4d4 in HEX, rgb(212 212 212) in RGB and oklch(87% 0 none) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind neutral-300 accessible for text?
White text on neutral-300 has a contrast ratio of 1.48:1 and black text 14.17:1. WCAG AA needs 4.5:1 for normal text and 3:1 for large text, so black text is the better choice here.
How do I use neutral-300 in Tailwind CSS?
Add bg-neutral-300, text-neutral-300 or border-neutral-300 to an element. In your own CSS use var(--color-neutral-300), the CSS variable Tailwind v4 creates for every color.