HEX to HSL: #364153
Also known as: Tailwind gray-700
Result
#364153 → hsl(217 21% 27%)
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. RGB ÷ 255
R = 0.2118 G = 0.2549 B = 0.3255
2. max, min, Δ
max = 0.3255 min = 0.2118 Δ = max − min = 0.1137
3. L
L = (max + min) / 2 = 0.2686 = 26.86%
4. S
S = Δ / (1 − |2L − 1|) = 0.2117 = 21.17%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2118 − 0.2549) / 0.1137 + 4) = 217.24°
6. HSL
hsl(217.24 21.17% 26.86%)
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?