HEX color reference

What color is #64748B?

#64748B is a neutral color suited for muted text, icons, subtle UI chrome. It works best when used deliberately for page backgrounds, text colors, borders, with contrast checked against the final background and text size.

This page gives practical values for #64748B: RGB, HSL, readable text color, WCAG-style contrast, palette ideas, tints, shades, and code snippets. It is built for designers and developers who need more than a single color swatch.

#64748B
Slate 500

Color values

HEX
#64748B
RGB
rgb(100, 116, 139)
HSL
hsl(215, 16%, 47%)
Color family
neutral

Contrast

The suggested readable text color for #64748B is #FFFFFF. Always test final typography and component size before shipping.

vs white: 4.76
vs black: 4.41
Preview text on #64748B

Best uses

  • - Page backgrounds
  • - Text colors
  • - Borders
  • - Dashboard surfaces

Palette ideas for #64748B

CSS and design token examples

Use these snippets as a starting point, then rename the token by purpose: primary, success, warning, accent, or surface. A named token is easier to maintain than repeating #64748B across many components.

CSS variables
:root {
  --primary: #64748B;
  --primary-rgb: 100, 116, 139;
  --primary-hsl: 215 16% 47%;
}
Tailwind config
// tailwind.config.js
export default {
  theme: {
    extend: {
      colors: {
        primary: "#64748B",
      },
    },
  },
};
JSON token
{
  "primary": "#64748B",
  "primaryRgb": [100, 116, 139],
  "primaryHsl": {"h": 215, "s": 16, "l": 47}
}
SCSS variables
$primary: #64748B;
$primary-rgb: 100, 116, 139;
$primary-hsl: 215 16% 47%;

How to use #64748B in UI

Use it with a role

Decide whether #64748B is a primary action, a status color, an accent, a chart color, or a background support color before adding it to a design system.

Create states

Use tints and shades for hover, active, selected, disabled, and subtle backgrounds. Do not invent unrelated colors for each state.

Check contrast

The fastest check is black versus white text, but final UI should be tested with actual font size, weight, and surface color.

Export consistently

Copy one source format into your token layer so the same color does not drift across CSS, Tailwind, JSON, and component files.

When to use and avoid #64748B

Use #64748B when

Use this color when its role is visible and repeatable. It works best when it is tied to a clear interface job such as a primary action, status badge, chart highlight, product category, or brand accent. The color should help users understand the page faster.

Avoid #64748B when

Avoid using it as a random decoration or applying it to too many unrelated elements. If every icon, card, heading, and button uses the same color, the color stops communicating priority. Use neutrals and tints to keep hierarchy clear.

Accessibility note

Contrast depends on the foreground and background pair, not the HEX value alone. Use the contrast scores above as an early check, then test the final component with real text size, font weight, spacing, and surrounding surfaces.

Token naming note

If #64748B appears more than once in your codebase, give it a token name. Good names describe purpose, such as primary, success, warning, accent, or surface. This prevents small color differences from spreading across components.

FAQ about #64748B

What is the RGB value of #64748B?

The RGB value is rgb(100, 116, 139). RGB is useful when checking browser dev tools, canvas pixels, or computed CSS values.

What is the HSL value of #64748B?

The HSL value is hsl(215, 16%, 47%). HSL is useful when creating lighter tints, darker shades, and calmer variations.

Which text color works best on #64748B?

Based on black and white contrast, #FFFFFF is the better quick choice. For production UI, confirm the result with the final font size and component state.

Can I use #64748B in Tailwind or CSS variables?

Yes. Use the export snippets above as a starting point, then rename the color by role so the value is maintainable across your project.

Related color pages