HEX naar HSL: #024A70
Ook bekend als: Tailwind sky-900
Resultaat
#024A70 → hsl(201 96% 22%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #024a70. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.0078 G = 0.2902 B = 0.4392
2. max, min, Δ
max = 0.4392 min = 0.0078 Δ = max − min = 0.4314
3. L
L = (max + min) / 2 = 0.2235 = 22.35%
4. S
S = Δ / (1 − |2L − 1|) = 0.9649 = 96.49%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0078 − 0.2902) / 0.4314 + 4) = 200.73°
6. HSL
hsl(200.73 96.49% 22.35%)
Alle formaten
- HEX
- #024a70
- RGB
- rgb(2 74 112)
- RGB (legacy)
- rgb(2, 74, 112)
- HSL
- hsl(200.73 96.49% 22.35%) → hsl(201 96% 22%)
- HWB
- hwb(201 1% 56%)
- OKLCH
- oklch(0.391 0.089 240.6) · oklch(39.1% 0.089 240.6)
- OKLab
- oklab(0.391 -0.044 -0.078)
- Lab (D50)
- lab(29.17 -8.48 -27.98)
- LCH (D50)
- lch(29.17 29.24 253.15)
- Display P3
- color(display-p3 0.1158 0.2854 0.4269)
- Linear sRGB
- color(srgb-linear 0.0006 0.0685 0.1620)
Gamut: sRGB en Display P3
#024A70 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.090 en Display P3 van 0.118; deze kleur gebruikt 99% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #024a70;
color: rgb(2 74 112);
color: hsl(201 96% 22%);
color: oklch(0.391 0.089 240.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.391 0.089 240.6);
}
/* arbitrary values */
class="text-[#024a70] bg-[oklch(0.391_0.089_240.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1158 0.2854 0.4269); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #024a70 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 sky-900#0C4A6E
- cyan-900#104E64
- v3 cyan-900#164E63
- slate-700#314158
- v3 sky-800#075985
- v3 slate-700#334155
- sky-800#00598A
- gray-700#364153
Lichter en donkerder, dezelfde tint en chroma
- #1C5B82 · oklch(0.451 0.089 240.6) · ΔL +0.06
- #003A5E · oklch(0.331 0.089 240.6) · ΔL −0.06