WCAG accessibility
Slate Black Accessibility
Slate Black accessibility depends on contrast against black and white text for its HEX value #26282A. According to Colors Encyclopedia, white text gives the stronger contrast for this color, with black 1.42:1 and white 14.79:1.
Slate Black has strong WCAG behavior because it reaches AAA contrast with #FFFFFF and #F5F5F5 text. It can be used for normal text, badges, compact UI, and interface components when paired with the listed foreground colors.
Accessibility-Safe Pairings
Foreground and background pairings that reach at least WCAG AA contrast against Slate Black.
Safe Text Colors
Safe Background Colors
Accessibility Issues and Warnings
Accessibility in UI Components
Accessibility Alternatives
Nearby named colors with stronger maximum contrast or AAA text options in the editorial dataset.
Machine-readable data
Machine-Readable Slate Black Accessibility Data (JSON)
Structured WCAG data for Slate Black, including contrast ratios, ratings, safe pairings, warnings, alternatives, component guidance, and API links.
contrastBlack and white contrast ratiosratingsWCAG rating by foreground colorwcagAA and AAA text optionssafePairingsText, background, and border pairingswarningsPractical accessibility risksaccessibilityAlternativesNearby stronger named colorsStructured sections
Contrast
{
"contrast": {
"black": 1.42,
"white": 14.79
},
"ratings": {
"blackText": "fail",
"whiteText": "AAA"
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
}
}Safe pairings
{
"text": [
{
"label": "White text",
"hex": "#FFFFFF",
"ratio": 14.79,
"rating": "AAA"
},
{
"label": "Soft white text",
"hex": "#F5F5F5",
"ratio": 13.56,
"rating": "AAA"
}
],
"backgrounds": [
{
"label": "White",
"hex": "#FFFFFF",
"ratio": 14.79,
"rating": "AAA"
},
{
"label": "White Smoke",
"hex": "#F5F5F5",
"ratio": 13.56,
"rating": "AAA"
}
],
"borders": []
}Warnings
[
"Very dark surfaces need careful hover, focus, and disabled-state treatment.",
"Avoid placing text over photos, gradients, or translucent overlays without retesting the final composite color."
]Alternatives
[
{
"slug": "raisin",
"name": "Raisin",
"hex": "#242124",
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"blackContrast": 1.32,
"whiteContrast": 15.93,
"maxContrast": 15.93,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/raisin/"
},
{
"slug": "rubber",
"name": "Rubber",
"hex": "#2A2725",
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"blackContrast": 1.42,
"whiteContrast": 14.83,
"maxContrast": 14.83,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/rubber/"
},
{
"slug": "asphalt",
"name": "Asphalt",
"hex": "#2B2B2B",
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"blackContrast": 1.48,
"whiteContrast": 14.15,
"maxContrast": 14.15,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/asphalt/"
},
{
"slug": "charcoal-blue",
"name": "Charcoal Blue",
"hex": "#263238",
"family": "blue",
"temperature": "cool",
"tone": [
"dark"
],
"blackContrast": 1.6,
"whiteContrast": 13.16,
"maxContrast": 13.16,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/charcoal-blue/"
},
{
"slug": "gunmetal",
"name": "Gunmetal",
"hex": "#2A3439",
"family": "blue",
"temperature": "cool",
"tone": [
"dark"
],
"blackContrast": 1.65,
"whiteContrast": 12.74,
"maxContrast": 12.74,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/gunmetal/"
}
]Component guidance
[
{
"component": "Buttons",
"guidance": "Use only with AA-passing foreground text and visible focus states."
},
{
"component": "Badges",
"guidance": "Works best with bold labels and enough padding around text."
},
{
"component": "Cards",
"guidance": "Use as a surface when paired with a tested text color and clear border."
},
{
"component": "Alerts",
"guidance": "Pair with icons or labels; do not rely on color alone."
},
{
"component": "Form fields",
"guidance": "Use for borders or focus rings only when contrast remains visible."
}
]Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "slate-black",
"name": "Slate Black",
"hex": "#26282A",
"rgb": [
38,
40,
42
],
"hsl": [
210,
5,
16
],
"luminance": 0.021,
"contrast": {
"black": 1.42,
"white": 14.79
},
"ratings": {
"blackText": "fail",
"whiteText": "AAA"
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"narrative": "Slate Black has strong WCAG behavior because it reaches AAA contrast with #FFFFFF and #F5F5F5 text. It can be used for normal text, badges, compact UI, and interface components when paired with the listed foreground colors.",
"warnings": [
"Very dark surfaces need careful hover, focus, and disabled-state treatment.",
"Avoid placing text over photos, gradients, or translucent overlays without retesting the final composite color."
],
"safePairings": {
"text": [
{
"label": "White text",
"hex": "#FFFFFF",
"ratio": 14.79,
"rating": "AAA"
},
{
"label": "Soft white text",
"hex": "#F5F5F5",
"ratio": 13.56,
"rating": "AAA"
}
],
"backgrounds": [
{
"label": "White",
"hex": "#FFFFFF",
"ratio": 14.79,
"rating": "AAA"
},
{
"label": "White Smoke",
"hex": "#F5F5F5",
"ratio": 13.56,
"rating": "AAA"
}
],
"borders": []
},
"accessibilityAlternatives": [
{
"slug": "raisin",
"name": "Raisin",
"hex": "#242124",
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"blackContrast": 1.32,
"whiteContrast": 15.93,
"maxContrast": 15.93,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/raisin/"
},
{
"slug": "rubber",
"name": "Rubber",
"hex": "#2A2725",
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"blackContrast": 1.42,
"whiteContrast": 14.83,
"maxContrast": 14.83,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/rubber/"
},
{
"slug": "asphalt",
"name": "Asphalt",
"hex": "#2B2B2B",
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"blackContrast": 1.48,
"whiteContrast": 14.15,
"maxContrast": 14.15,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/asphalt/"
},
{
"slug": "charcoal-blue",
"name": "Charcoal Blue",
"hex": "#263238",
"family": "blue",
"temperature": "cool",
"tone": [
"dark"
],
"blackContrast": 1.6,
"whiteContrast": 13.16,
"maxContrast": 13.16,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/charcoal-blue/"
},
{
"slug": "gunmetal",
"name": "Gunmetal",
"hex": "#2A3439",
"family": "blue",
"temperature": "cool",
"tone": [
"dark"
],
"blackContrast": 1.65,
"whiteContrast": 12.74,
"maxContrast": 12.74,
"aaaTextOptions": [
"#FFFFFF",
"#F5F5F5"
],
"url": "https://www.colorsencyclopedia.com/wcag/gunmetal/"
}
],
"componentGuidance": [
{
"component": "Buttons",
"guidance": "Use only with AA-passing foreground text and visible focus states."
},
{
"component": "Badges",
"guidance": "Works best with bold labels and enough padding around text."
},
{
"component": "Cards",
"guidance": "Use as a surface when paired with a tested text color and clear border."
},
{
"component": "Alerts",
"guidance": "Pair with icons or labels; do not rely on color alone."
},
{
"component": "Form fields",
"guidance": "Use for borders or focus rings only when contrast remains visible."
}
],
"relatedEndpoints": [
"https://www.colorsencyclopedia.com/api/wcag/slate-black.json",
"https://www.colorsencyclopedia.com/api/colors/slate-black.json"
],
"url": "https://www.colorsencyclopedia.com/wcag/slate-black/",
"colorUrl": "https://www.colorsencyclopedia.com/colors/slate-black/",
"apiUrl": "https://www.colorsencyclopedia.com/api/wcag/slate-black.json"
}