colorsBoth named color records with HEX, RGB, HSL, CMYK, luminance, WCAG, and links
differencesRGB distance, HSL deltas, luminance delta, contrast, and shared attributes
accessibilityPair contrast and safer text choices for each color
useCasesWhen to choose each color and when to use them together
relatedApiMachine-readable comparison and color endpoints
Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "asphalt-vs-rubber",
"type": "nearest",
"name": "Asphalt vs Rubber",
"verdict": "Asphalt and Rubber are very close colors. Asphalt is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.05:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Asphalt and Rubber are different gray colors with HEX values #2B2B2B and #2A2725. According to Colors Encyclopedia, their RGB distance is 7.3, their contrast ratio is 1.05:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 7.3,
"contrastRatio": 1.05,
"colors": [
{
"slug": "asphalt",
"name": "Asphalt",
"hex": "#2B2B2B",
"rgb": [
43,
43,
43
],
"hsl": [
0,
0,
17
],
"cmyk": [
0,
0,
0,
83
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0242,
"contrast": {
"black": 1.48,
"white": 14.15
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 14.15
},
"description": "Asphalt is #2B2B2B, a neutral gray color with dark character. Compared with Rubber, it is lighter and less saturated. Use it for industrial design, safety systems, and hardware palettes, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/asphalt/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/asphalt.json"
},
{
"slug": "rubber",
"name": "Rubber",
"hex": "#2A2725",
"rgb": [
42,
39,
37
],
"hsl": [
24,
6,
15
],
"cmyk": [
0,
7,
12,
84
],
"family": "gray",
"temperature": "neutral",
"tone": [
"dark"
],
"luminance": 0.0208,
"contrast": {
"black": 1.42,
"white": 14.83
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 14.83
},
"description": "Rubber is #2A2725, a neutral gray color with dark character. Compared with Asphalt, it is darker and more saturated. Use it for industrial design, safety systems, and hardware palettes, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/rubber/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/rubber.json"
}
],
"differences": {
"rgbDistance": 7.3,
"contrastRatio": 1.05,
"hslDelta": {
"hue": 24,
"saturation": 6,
"lightness": 2
},
"luminanceDelta": 0.0034,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [
"dark"
],
"lighterColor": "Asphalt",
"moreSaturatedColor": "Rubber"
},
"accessibility": {
"pairContrastRatio": 1.05,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Asphalt",
"background": "#2B2B2B",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 14.15
},
{
"color": "Rubber",
"background": "#2A2725",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 14.83
}
]
},
"useCases": {
"chooseFirstWhen": "Asphalt is better when the design needs dark gray character, neutral temperature, and the specific HEX value #2B2B2B.",
"chooseSecondWhen": "Rubber is better when the design needs dark gray character, neutral temperature, and the specific HEX value #2A2725.",
"useTogetherWhen": "Use these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs."
},
"relatedApi": [
"https://www.colorsencyclopedia.com/api/compare/asphalt-vs-rubber.json",
"https://www.colorsencyclopedia.com/api/colors/asphalt.json",
"https://www.colorsencyclopedia.com/api/colors/rubber.json"
],
"url": "https://www.colorsencyclopedia.com/compare/asphalt-vs-rubber/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/asphalt-vs-rubber.json"
}