RGB to HEX: #364153
Also known as: Tailwind gray-700
Result
rgb(54 65 83) → #364153
Values are shown at full precision, so converting back gives exactly #364153. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. base 10 → base 16
R = 54 = 3×16 + 6 → 36 G = 65 = 4×16 + 1 → 41 B = 83 = 5×16 + 3 → 53
2. pairs → HEX
36 41 53 → #364153
All formats
- HEX
- #364153
- RGB
- rgb(54 65 83)
- RGB (legacy)
- rgb(54, 65, 83)
- HSL
- hsl(217.24 21.17% 26.86%) → hsl(217 21% 27%)
- HWB
- hwb(217 21% 67%)
- OKLCH
- oklch(0.373 0.034 260.2) · oklch(37.3% 0.034 260.2)
- OKLab
- oklab(0.373 -0.006 -0.034)
- Lab (D50)
- lab(27.11 -0.87 -12.45)
- LCH (D50)
- lch(27.11 12.48 266.01)
- Display P3
- color(display-p3 0.2201 0.2536 0.3194)
- Linear sRGB
- color(srgb-linear 0.0369 0.0529 0.0865)
Gamut: sRGB and Display P3
#364153 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.154 and Display P3 reaches 0.193; this color uses 22% of the sRGB chroma available.
CSS snippets
.element {
color: #364153;
color: rgb(54 65 83);
color: hsl(217 21% 27%);
color: oklch(0.373 0.034 260.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.373 0.034 260.2);
}
/* arbitrary values */
class="text-[#364153] bg-[oklch(0.373_0.034_260.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2201 0.2536 0.3194); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #364153 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 gray-700#374151
- v3 slate-700#334155
- slate-700#314158
- zinc-700#3F3F46
- mist-700#394447
- neutral-700#404040
- mauve-700#463947
- v3 stone-700#44403C
Lighter and darker, same hue and chroma
- #465164 · oklch(0.433 0.034 260.2) · ΔL +0.06
- #273143 · oklch(0.313 0.034 260.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?