CSS utility
Steel Blue CSS Utilities
Steel Blue CSS utilities provide reusable variables and utility classes for #4682B4. 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
Steel Blue
#4682B4
Utility Classes
CSS Snippet
:root {
--color-steel-blue: #4682B4;
--color-steel-blue-rgb: 70 130 180;
--color-steel-blue-contrast: #111827;
}
.bg-steel-blue { background-color: var(--color-steel-blue); }
.text-steel-blue { color: var(--color-steel-blue); }
.border-steel-blue { border-color: var(--color-steel-blue); }
.surface-steel-blue {
background-color: var(--color-steel-blue);
color: var(--color-steel-blue-contrast);
border: 1px solid color-mix(in srgb, var(--color-steel-blue), #111827 18%);
}
.shadow-steel-blue { box-shadow: 0 18px 40px rgb(var(--color-steel-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
Machine-readable data
Machine-Readable Steel Blue CSS Utilities (JSON)
Structured CSS utility data for Steel Blue, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.2056
Black text5.11:1AA Pass
White text4.11:1AA Fail
cssVariablesReusable CSS custom propertiesutilityClassesBackground, text, border, surface, and shadow classesbestTextColorAccessible default foreground tokencontrastBlack and white contrast ratioswcagAA and AAA text color optionsrelatedEndpointsLinked machine-readable resourcesStructured sections
CSS variables
{
"color": "--color-steel-blue: #4682B4;",
"rgb": "--color-steel-blue-rgb: 70 130 180;",
"contrast": "--color-steel-blue-contrast: #111827;"
}Utility classes
{
"background": ".bg-steel-blue",
"text": ".text-steel-blue",
"border": ".border-steel-blue",
"surface": ".surface-steel-blue",
"shadow": ".shadow-steel-blue"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 5.11,
"white": 4.11
},
"wcag": {
"AA": [
"#000000"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-steel-blue: #4682B4;\n --color-steel-blue-rgb: 70 130 180;\n --color-steel-blue-contrast: #111827;\n}\n\n.bg-steel-blue { background-color: var(--color-steel-blue); }\n.text-steel-blue { color: var(--color-steel-blue); }\n.border-steel-blue { border-color: var(--color-steel-blue); }\n.surface-steel-blue {\n background-color: var(--color-steel-blue);\n color: var(--color-steel-blue-contrast);\n border: 1px solid color-mix(in srgb, var(--color-steel-blue), #111827 18%);\n}\n.shadow-steel-blue { box-shadow: 0 18px 40px rgb(var(--color-steel-blue-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/steel-blue.json",
"https://www.colorsencyclopedia.com/api/colors/steel-blue.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "steel-blue",
"name": "Steel Blue",
"hex": "#4682B4",
"rgb": [
70,
130,
180
],
"hsl": [
207,
44,
49
],
"cmyk": [
61,
28,
0,
29
],
"luminance": 0.2056,
"contrast": {
"black": 5.11,
"white": 4.11
},
"wcag": {
"AA": [
"#000000"
],
"AAA": []
},
"family": "blue",
"temperature": "cool",
"tone": [
"balanced"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-steel-blue: #4682B4;",
"rgb": "--color-steel-blue-rgb: 70 130 180;",
"contrast": "--color-steel-blue-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-steel-blue",
"text": ".text-steel-blue",
"border": ".border-steel-blue",
"surface": ".surface-steel-blue",
"shadow": ".shadow-steel-blue"
},
"cssSnippet": ":root {\n --color-steel-blue: #4682B4;\n --color-steel-blue-rgb: 70 130 180;\n --color-steel-blue-contrast: #111827;\n}\n\n.bg-steel-blue { background-color: var(--color-steel-blue); }\n.text-steel-blue { color: var(--color-steel-blue); }\n.border-steel-blue { border-color: var(--color-steel-blue); }\n.surface-steel-blue {\n background-color: var(--color-steel-blue);\n color: var(--color-steel-blue-contrast);\n border: 1px solid color-mix(in srgb, var(--color-steel-blue), #111827 18%);\n}\n.shadow-steel-blue { box-shadow: 0 18px 40px rgb(var(--color-steel-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/steel-blue.json",
"https://www.colorsencyclopedia.com/api/colors/steel-blue.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/steel-blue/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/steel-blue/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/4682b4/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/steel-blue.json"
}