CSS utility
Peat CSS Utilities
Peat CSS utilities provide reusable variables and utility classes for #3B2F2F. 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
Peat
#3B2F2F
Utility Classes
CSS Snippet
:root {
--color-peat: #3B2F2F;
--color-peat-rgb: 59 47 47;
--color-peat-contrast: #FFFFFF;
}
.bg-peat { background-color: var(--color-peat); }
.text-peat { color: var(--color-peat); }
.border-peat { border-color: var(--color-peat); }
.surface-peat {
background-color: var(--color-peat);
color: var(--color-peat-contrast);
border: 1px solid color-mix(in srgb, var(--color-peat), #111827 18%);
}
.shadow-peat { box-shadow: 0 18px 40px rgb(var(--color-peat-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 Peat CSS Utilities (JSON)
Structured CSS utility data for Peat, including variables, utility classes, contrast tokens, WCAG metadata, snippets, and API links.
Luminance0.0317
Black text1.63:1AA Fail
White text12.85:1AA Pass
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-peat: #3B2F2F;",
"rgb": "--color-peat-rgb: 59 47 47;",
"contrast": "--color-peat-contrast: #FFFFFF;"
}Utility classes
{
"background": ".bg-peat",
"text": ".text-peat",
"border": ".border-peat",
"surface": ".surface-peat",
"shadow": ".shadow-peat"
}Accessibility
{
"bestTextColor": "#FFFFFF",
"contrast": {
"black": 1.63,
"white": 12.85
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
}
}Implementation
{
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"cssSnippet": ":root {\n --color-peat: #3B2F2F;\n --color-peat-rgb: 59 47 47;\n --color-peat-contrast: #FFFFFF;\n}\n\n.bg-peat { background-color: var(--color-peat); }\n.text-peat { color: var(--color-peat); }\n.border-peat { border-color: var(--color-peat); }\n.surface-peat {\n background-color: var(--color-peat);\n color: var(--color-peat-contrast);\n border: 1px solid color-mix(in srgb, var(--color-peat), #111827 18%);\n}\n.shadow-peat { box-shadow: 0 18px 40px rgb(var(--color-peat-rgb) / 28%); }"
}Related endpoints
[
"https://www.colorsencyclopedia.com/api/css/colors/peat.json",
"https://www.colorsencyclopedia.com/api/colors/peat.json"
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "peat",
"name": "Peat",
"hex": "#3B2F2F",
"rgb": [
59,
47,
47
],
"hsl": [
0,
11,
21
],
"cmyk": [
0,
20,
20,
77
],
"luminance": 0.0317,
"contrast": {
"black": 1.63,
"white": 12.85
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"family": "red",
"temperature": "warm",
"tone": [
"dark"
],
"bestTextColor": "#FFFFFF",
"cssVariables": {
"color": "--color-peat: #3B2F2F;",
"rgb": "--color-peat-rgb: 59 47 47;",
"contrast": "--color-peat-contrast: #FFFFFF;"
},
"utilityClasses": {
"background": ".bg-peat",
"text": ".text-peat",
"border": ".border-peat",
"surface": ".surface-peat",
"shadow": ".shadow-peat"
},
"cssSnippet": ":root {\n --color-peat: #3B2F2F;\n --color-peat-rgb: 59 47 47;\n --color-peat-contrast: #FFFFFF;\n}\n\n.bg-peat { background-color: var(--color-peat); }\n.text-peat { color: var(--color-peat); }\n.border-peat { border-color: var(--color-peat); }\n.surface-peat {\n background-color: var(--color-peat);\n color: var(--color-peat-contrast);\n border: 1px solid color-mix(in srgb, var(--color-peat), #111827 18%);\n}\n.shadow-peat { box-shadow: 0 18px 40px rgb(var(--color-peat-rgb) / 28%); }",
"useCases": [
"CSS variables",
"utility classes",
"design system tokens",
"UI surface styling",
"accessible text pairing"
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/css/colors/peat.json",
"https://www.colorsencyclopedia.com/api/colors/peat.json"
],
"url": "https://www.colorsencyclopedia.com/css/colors/peat/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/peat/",
"hexUrl": "https://www.colorsencyclopedia.com/hex/3b2f2f/",
"apiUrl": "https://www.colorsencyclopedia.com/api/css/colors/peat.json"
}