RGB to HEX: #1C1917

Also known as: Tailwind stone-900, Tailwind v3 stone-900

Result

rgb(28 25 23) → #1C1917

Values are shown at full precision, so converting back gives exactly #1c1917. 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 = 28 = 1×16 + 12 → 1C
    G = 25 = 1×16 + 9 → 19
    B = 23 = 1×16 + 7 → 17
  2. 2. pairs → HEX

    1C 19 17 → #1C1917

All formats

HEX
#1c1917
RGB
rgb(28 25 23)
RGB (legacy)
rgb(28, 25, 23)
HSL
hsl(24.00 9.80% 10.00%) → hsl(24 10% 10%)
HWB
hwb(24 9% 89%)
OKLCH
oklch(0.216 0.006 56.0) · oklch(21.6% 0.006 56.0)
OKLab
oklab(0.216 0.003 0.005)
Lab (D50)
lab(9.05 1.18 1.97)
LCH (D50)
lch(9.05 2.30 59.13)
Display P3
color(display-p3 0.1078 0.0985 0.0911)
Linear sRGB
color(srgb-linear 0.0116 0.0097 0.0086)

Gamut: sRGB and Display P3

#1C1917 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.053 and Display P3 reaches 0.060; this color uses 12% of the sRGB chroma available.

CSS snippets

.element {
  color: #1c1917;
  color: rgb(28 25 23);
  color: hsl(24 10% 10%);
  color: oklch(0.216 0.006 56.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.216 0.006 56.0);
}
/* arbitrary values */
class="text-[#1c1917] bg-[oklch(0.216_0.006_56.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1078 0.0985 0.0911); }
}

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

  • #2A2725 · oklch(0.276 0.006 56.0) · ΔL +0.06
  • #0F0C0A · oklch(0.156 0.006 56.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?