RGB to HEX: #1E90FF

Also known as: CSS dodgerblue

Result

rgb(30 144 255) → #1E90FF

Values are shown at full precision, so converting back gives exactly #1e90ff. 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. base 10 → base 16

    R = 30 = 1×16 + 14 → 1E
    G = 144 = 9×16 + 0 → 90
    B = 255 = 15×16 + 15 → FF
  2. 2. pairs → HEX

    1E 90 FF → #1E90FF

All formats

HEX
#1e90ff
RGB
rgb(30 144 255)
RGB (legacy)
rgb(30, 144, 255)
HSL
hsl(209.60 100.00% 55.88%) → hsl(210 100% 56%)
HWB
hwb(210 12% 0%)
OKLCH
oklch(0.652 0.190 253.2) · oklch(65.2% 0.190 253.2)
OKLab
oklab(0.652 -0.055 -0.182)
Lab (D50)
lab(58.36 0.89 -64.78)
LCH (D50)
lch(58.36 64.79 270.79)
Display P3
color(display-p3 0.2721 0.5565 0.9690)
Linear sRGB
color(srgb-linear 0.0130 0.2789 1.0000)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #1e90ff;
  color: rgb(30 144 255);
  color: hsl(210 100% 56%);
  color: oklch(0.652 0.190 253.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.652 0.190 253.2);
}
/* arbitrary values */
class="text-[#1e90ff] bg-[oklch(0.652_0.190_253.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2721 0.5565 0.9690); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #1e90ff 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

  • #38A3FF · oklch(0.712 0.190 253.2) · ΔL +0.06
  • #007DEA · oklch(0.592 0.190 253.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?