CSS utility
Dodger Blue CSS Utilities
Dodger Blue CSS utilities provide reusable variables and utility classes for #1E90FF. 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
Dodger Blue
#1E90FF
Utility Classes
CSS Snippet
:root {
--color-dodger-blue: #1E90FF;
--color-dodger-blue-rgb: 30 144 255;
--color-dodger-blue-contrast: #111827;
}
.bg-dodger-blue { background-color: var(--color-dodger-blue); }
.text-dodger-blue { color: var(--color-dodger-blue); }
.border-dodger-blue { border-color: var(--color-dodger-blue); }
.surface-dodger-blue {
background-color: var(--color-dodger-blue);
color: var(--color-dodger-blue-contrast);
border: 1px solid color-mix(in srgb, var(--color-dodger-blue), #111827 18%);
}
.shadow-dodger-blue { box-shadow: 0 18px 40px rgb(var(--color-dodger-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 Dodger Blue CSS Utilities (JSON)
Structured CSS utility data for Dodger Blue, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.2744
Black text6.49:1AA Pass
White text3.24: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-dodger-blue: #1E90FF;",
"rgb": "--color-dodger-blue-rgb: 30 144 255;",
"contrast": "--color-dodger-blue-contrast: #111827;"
}Utility classes
{
"background": ".bg-dodger-blue",
"text": ".text-dodger-blue",
"border": ".border-dodger-blue",
"surface": ".surface-dodger-blue",
"shadow": ".shadow-dodger-blue"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 6.49,
"white": 3.24
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": []
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-dodger-blue: #1E90FF;\n --color-dodger-blue-rgb: 30 144 255;\n --color-dodger-blue-contrast: #111827;\n}\n\n.bg-dodger-blue { background-color: var(--color-dodger-blue); }\n.text-dodger-blue { color: var(--color-dodger-blue); }\n.border-dodger-blue { border-color: var(--color-dodger-blue); }\n.surface-dodger-blue {\n background-color: var(--color-dodger-blue);\n color: var(--color-dodger-blue-contrast);\n border: 1px solid color-mix(in srgb, var(--color-dodger-blue), #111827 18%);\n}\n.shadow-dodger-blue { box-shadow: 0 18px 40px rgb(var(--color-dodger-blue-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/dodger-blue.json",
"https://www.colorsencyclopedia.com/api/colors/dodger-blue.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "dodger-blue",
"name": "Dodger Blue",
"hex": "#1E90FF",
"rgb": [
30,
144,
255
],
"hsl": [
210,
100,
56
],
"cmyk": [
88,
44,
0,
0
],
"luminance": 0.2744,
"contrast": {
"black": 6.49,
"white": 3.24
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A"
],
"AAA": []
},
"family": "blue",
"temperature": "cool",
"tone": [
"vibrant"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-dodger-blue: #1E90FF;",
"rgb": "--color-dodger-blue-rgb: 30 144 255;",
"contrast": "--color-dodger-blue-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-dodger-blue",
"text": ".text-dodger-blue",
"border": ".border-dodger-blue",
"surface": ".surface-dodger-blue",
"shadow": ".shadow-dodger-blue"
},
"cssSnippet": ":root {\n --color-dodger-blue: #1E90FF;\n --color-dodger-blue-rgb: 30 144 255;\n --color-dodger-blue-contrast: #111827;\n}\n\n.bg-dodger-blue { background-color: var(--color-dodger-blue); }\n.text-dodger-blue { color: var(--color-dodger-blue); }\n.border-dodger-blue { border-color: var(--color-dodger-blue); }\n.surface-dodger-blue {\n background-color: var(--color-dodger-blue);\n color: var(--color-dodger-blue-contrast);\n border: 1px solid color-mix(in srgb, var(--color-dodger-blue), #111827 18%);\n}\n.shadow-dodger-blue { box-shadow: 0 18px 40px rgb(var(--color-dodger-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/dodger-blue.json",
"https://www.colorsencyclopedia.com/api/colors/dodger-blue.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/dodger-blue/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/dodger-blue/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/1e90ff/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/dodger-blue.json"
}