HEX to RGB: #F0F9FF

Also known as: Tailwind sky-50, Tailwind v3 sky-50

Result

#F0F9FF → rgb(240 249 255)

Values are shown at full precision, so converting back gives exactly #f0f9ff. 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. 1. HEX → pairs

    #F0F9FF → F0 | F9 | FF
  2. 2. base 16 → base 10

    R = F0₁₆ = 15×16 + 0 = 240
    G = F9₁₆ = 15×16 + 9 = 249
    B = FF₁₆ = 15×16 + 15 = 255
  3. 3. RGB

    rgb(240 249 255)

All formats

HEX
#f0f9ff
RGB
rgb(240 249 255)
RGB (legacy)
rgb(240, 249, 255)
HSL
hsl(204.00 100.00% 97.06%) → hsl(204 100% 97%)
HWB
hwb(204 94% 0%)
OKLCH
oklch(0.977 0.012 236.6) · oklch(97.7% 0.012 236.6)
OKLab
oklab(0.977 -0.007 -0.010)
Lab (D50)
lab(97.37 -2.25 -3.97)
LCH (D50)
lch(97.37 4.56 240.48)
Display P3
color(display-p3 0.9476 0.9753 0.9974)
Linear sRGB
color(srgb-linear 0.8714 0.9473 1.0000)

Gamut: sRGB and Display P3

#F0F9FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.012 and Display P3 reaches 0.014; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #f0f9ff;
  color: rgb(240 249 255);
  color: hsl(204 100% 97%);
  color: oklch(0.977 0.012 236.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.977 0.012 236.6);
}
/* arbitrary values */
class="text-[#f0f9ff] bg-[oklch(0.977_0.012_236.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9476 0.9753 0.9974); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f0f9ff calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #F8FFFF · oklch(1.000 0.012 236.6) · ΔL +0.06
  • #DCE5EB · oklch(0.917 0.012 236.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?