CSS utility

Slate Blue CSS Utilities

Slate Blue CSS utilities provide reusable variables and utility classes for #6A5ACD. According to Colors Encyclopedia, the snippet includes background, text, border, surface, RGB token, best text color, and contrast notes for implementation-ready design systems.

Preview Slate Blue #6A5ACD

Utility Classes

Background.bg-slate-blue
Text.text-slate-blue
Border.border-slate-blue
Surface.surface-slate-blue

CSS Snippet

:root {
  --color-slate-blue: #6A5ACD;
  --color-slate-blue-rgb: 106 90 205;
  --color-slate-blue-contrast: #FFFFFF;
}

.bg-slate-blue { background-color: var(--color-slate-blue); }
.text-slate-blue { color: var(--color-slate-blue); }
.border-slate-blue { border-color: var(--color-slate-blue); }
.surface-slate-blue {
  background-color: var(--color-slate-blue);
  color: var(--color-slate-blue-contrast);
  border: 1px solid color-mix(in srgb, var(--color-slate-blue), #111827 18%);
}
.shadow-slate-blue { box-shadow: 0 18px 40px rgb(var(--color-slate-blue-rgb) / 28%); }

Usage Examples

Surface cardUse for panels, labels, badges, and interface accents.
Border accentUse as a soft divider or outline color.
Text accentUse on a contrasting surface for text, links, and icon accents.

Implementation Notes

Best text color#FFFFFF
Black contrast3.96:1
White contrast5.31:1
RGB token106 90 205

Machine-readable data

Machine-Readable Slate Blue CSS Utilities (JSON)

Structured CSS utility data for Slate Blue, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.

AI-Ready Dataset v1.0.0
Luminance0.1478
Black text3.96:1AA Fail
White text5.31:1AA Pass
cssVariablesReusable CSS custom properties
utilityClassesBackground, text, border, surface, and shadow classes
bestTextColorAccessible default foreground token
contrastBlack and white contrast ratios
wcagAA and AAA text color options
relatedEndpointsLinked machine-readable resources
Download JSON Open API
Structured sections
CSS variables
{
  "color": "--color-slate-blue: #6A5ACD;",
  "rgb": "--color-slate-blue-rgb: 106 90 205;",
  "contrast": "--color-slate-blue-contrast: #FFFFFF;"
}
Utility classes
{
  "background": ".bg-slate-blue",
  "text": ".text-slate-blue",
  "border": ".border-slate-blue",
  "surface": ".surface-slate-blue",
  "shadow": ".shadow-slate-blue"
}
Accessibility
{
  "bestTextColor": "#FFFFFF",
  "contrast": {
    "black": 3.96,
    "white": 5.31
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  }
}
Implementation
{
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "cssSnippet": ":root {\n  --color-slate-blue: #6A5ACD;\n  --color-slate-blue-rgb: 106 90 205;\n  --color-slate-blue-contrast: #FFFFFF;\n}\n\n.bg-slate-blue { background-color: var(--color-slate-blue); }\n.text-slate-blue { color: var(--color-slate-blue); }\n.border-slate-blue { border-color: var(--color-slate-blue); }\n.surface-slate-blue {\n  background-color: var(--color-slate-blue);\n  color: var(--color-slate-blue-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-slate-blue), #111827 18%);\n}\n.shadow-slate-blue { box-shadow: 0 18px 40px rgb(var(--color-slate-blue-rgb) / 28%); }"
}
Related endpoints
[
  "https://www.colorsencyclopedia.com/api/css/colors/slate-blue.json",
  "https://www.colorsencyclopedia.com/api/colors/slate-blue.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "slate-blue",
  "name": "Slate Blue",
  "hex": "#6A5ACD",
  "rgb": [
    106,
    90,
    205
  ],
  "hsl": [
    248,
    53,
    58
  ],
  "cmyk": [
    48,
    56,
    0,
    20
  ],
  "luminance": 0.1478,
  "contrast": {
    "black": 3.96,
    "white": 5.31
  },
  "wcag": {
    "AA": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "AAA": []
  },
  "family": "blue",
  "temperature": "cool",
  "tone": [
    "balanced"
  ],
  "bestTextColor": "#FFFFFF",
  "cssVariables": {
    "color": "--color-slate-blue: #6A5ACD;",
    "rgb": "--color-slate-blue-rgb: 106 90 205;",
    "contrast": "--color-slate-blue-contrast: #FFFFFF;"
  },
  "utilityClasses": {
    "background": ".bg-slate-blue",
    "text": ".text-slate-blue",
    "border": ".border-slate-blue",
    "surface": ".surface-slate-blue",
    "shadow": ".shadow-slate-blue"
  },
  "cssSnippet": ":root {\n  --color-slate-blue: #6A5ACD;\n  --color-slate-blue-rgb: 106 90 205;\n  --color-slate-blue-contrast: #FFFFFF;\n}\n\n.bg-slate-blue { background-color: var(--color-slate-blue); }\n.text-slate-blue { color: var(--color-slate-blue); }\n.border-slate-blue { border-color: var(--color-slate-blue); }\n.surface-slate-blue {\n  background-color: var(--color-slate-blue);\n  color: var(--color-slate-blue-contrast);\n  border: 1px solid color-mix(in srgb, var(--color-slate-blue), #111827 18%);\n}\n.shadow-slate-blue { box-shadow: 0 18px 40px rgb(var(--color-slate-blue-rgb) / 28%); }",
  "useCases": [
    "CSS variables",
    "utility classes",
    "design system tokens",
    "UI surface styling",
    "accessible text pairing"
  ],
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/css/colors/slate-blue.json",
    "https://www.colorsencyclopedia.com/api/colors/slate-blue.json"
  ],
  "url": "https://www.colorsencyclopedia.com/css/colors/slate-blue/",
  "colorUrl": "https://www.colorsencyclopedia.com/colors/slate-blue/",
  "hexUrl": "https://www.colorsencyclopedia.com/hex/6a5acd/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/slate-blue.json"
}