CSS utility
Duck Egg Blue CSS Utilities
Duck Egg Blue CSS utilities provide reusable variables and utility classes for #C3FBF4. 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
Duck Egg Blue
#C3FBF4
Utility Classes
CSS Snippet
:root {
--color-duck-egg-blue: #C3FBF4;
--color-duck-egg-blue-rgb: 195 251 244;
--color-duck-egg-blue-contrast: #111827;
}
.bg-duck-egg-blue { background-color: var(--color-duck-egg-blue); }
.text-duck-egg-blue { color: var(--color-duck-egg-blue); }
.border-duck-egg-blue { border-color: var(--color-duck-egg-blue); }
.surface-duck-egg-blue {
background-color: var(--color-duck-egg-blue);
color: var(--color-duck-egg-blue-contrast);
border: 1px solid color-mix(in srgb, var(--color-duck-egg-blue), #111827 18%);
}
.shadow-duck-egg-blue { box-shadow: 0 18px 40px rgb(var(--color-duck-egg-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 Duck Egg Blue CSS Utilities (JSON)
Structured CSS utility data for Duck Egg Blue, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.8713
Black text18.43:1AA Pass
White text1.14: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-duck-egg-blue: #C3FBF4;",
"rgb": "--color-duck-egg-blue-rgb: 195 251 244;",
"contrast": "--color-duck-egg-blue-contrast: #111827;"
}Utility classes
{
"background": ".bg-duck-egg-blue",
"text": ".text-duck-egg-blue",
"border": ".border-duck-egg-blue",
"surface": ".surface-duck-egg-blue",
"shadow": ".shadow-duck-egg-blue"
}Accessibility
{
"bestTextColor": "#111827",
"contrast": {
"black": 18.43,
"white": 1.14
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-duck-egg-blue: #C3FBF4;\n --color-duck-egg-blue-rgb: 195 251 244;\n --color-duck-egg-blue-contrast: #111827;\n}\n\n.bg-duck-egg-blue { background-color: var(--color-duck-egg-blue); }\n.text-duck-egg-blue { color: var(--color-duck-egg-blue); }\n.border-duck-egg-blue { border-color: var(--color-duck-egg-blue); }\n.surface-duck-egg-blue {\n background-color: var(--color-duck-egg-blue);\n color: var(--color-duck-egg-blue-contrast);\n border: 1px solid color-mix(in srgb, var(--color-duck-egg-blue), #111827 18%);\n}\n.shadow-duck-egg-blue { box-shadow: 0 18px 40px rgb(var(--color-duck-egg-blue-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/duck-egg-blue.json",
"https://www.colorsencyclopedia.com/api/colors/duck-egg-blue.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "duck-egg-blue",
"name": "Duck Egg Blue",
"hex": "#C3FBF4",
"rgb": [
195,
251,
244
],
"hsl": [
173,
88,
87
],
"cmyk": [
22,
0,
3,
2
],
"luminance": 0.8713,
"contrast": {
"black": 18.43,
"white": 1.14
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"family": "cyan",
"temperature": "cool",
"tone": [
"light",
"pastel"
],
"bestTextColor": "#111827",
"cssVariables": {
"color": "--color-duck-egg-blue: #C3FBF4;",
"rgb": "--color-duck-egg-blue-rgb: 195 251 244;",
"contrast": "--color-duck-egg-blue-contrast: #111827;"
},
"utilityClasses": {
"background": ".bg-duck-egg-blue",
"text": ".text-duck-egg-blue",
"border": ".border-duck-egg-blue",
"surface": ".surface-duck-egg-blue",
"shadow": ".shadow-duck-egg-blue"
},
"cssSnippet": ":root {\n --color-duck-egg-blue: #C3FBF4;\n --color-duck-egg-blue-rgb: 195 251 244;\n --color-duck-egg-blue-contrast: #111827;\n}\n\n.bg-duck-egg-blue { background-color: var(--color-duck-egg-blue); }\n.text-duck-egg-blue { color: var(--color-duck-egg-blue); }\n.border-duck-egg-blue { border-color: var(--color-duck-egg-blue); }\n.surface-duck-egg-blue {\n background-color: var(--color-duck-egg-blue);\n color: var(--color-duck-egg-blue-contrast);\n border: 1px solid color-mix(in srgb, var(--color-duck-egg-blue), #111827 18%);\n}\n.shadow-duck-egg-blue { box-shadow: 0 18px 40px rgb(var(--color-duck-egg-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/duck-egg-blue.json",
"https://www.colorsencyclopedia.com/api/colors/duck-egg-blue.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/duck-egg-blue/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/duck-egg-blue/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/c3fbf4/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/duck-egg-blue.json"
}