Generated palette

Slate Black Palette

Slate Black Palette: #26282A, #2B2927, #272B2B, #27272B. Check roles, contrast and CSS variables; open source-color links and JSON.

Slate Black Palette assigns primary #26282A, secondary #2B2927, surface #272B2B, background #27272B, accent #FFFFFF. The set spans Gray families with neutral temperature. Luminance runs from #27272B at 0.0206 to #FFFFFF at 1; black gives higher contrast on 1 of 5 values.

5colors
Gray palettedominant group
4use cases

Palette Color Roles

Slate Black Palette maps 5 colors to practical UI roles for interfaces, brand systems, and CSS tokens.

Primary#26282ASlate Black
Secondary#2B2927#2B2927
Surface#272B2B#272B2B
Background#27272B#27272B
Accent#FFFFFFWhite

CSS Variables

--palette-slate-black-primary: #26282A;
--palette-slate-black-secondary: #2B2927;
--palette-slate-black-surface: #272B2B;
--palette-slate-black-background: #27272B;
--palette-slate-black-accent: #FFFFFF;

Accessibility Snapshot

Compare all 5 Slate Black Palette values against black and white text, with the stronger standard foreground identified for each role.

Primary#26282A
Black 1.42:1 · White 14.79:1
Best #FFFFFF
Secondary#2B2927
Black 1.45:1 · White 14.48:1
Best #FFFFFF
Surface#272B2B
Black 1.47:1 · White 14.32:1
Best #FFFFFF
Background#27272B
Black 1.41:1 · White 14.87:1
Best #FFFFFF
Accent#FFFFFF
Black 21:1 · White 1:1
Best #000000

UI Components Preview

Preview how the Slate Black Palette roles behave together across common interface components before copying the CSS variables.

ButtonPrimary action with checked foreground contrast.
CardSurface treatment using palette roles.
AlertBackground, text, and accent roles together.
NavbarSecondary role with accent state.

Machine-readable data

Machine-Readable Slate Black Palette Data (JSON)

Structured palette data for Slate Black Palette, including color roles, accessibility, semantic groups, use cases, CSS variables, and API links.

AI-Ready Dataset v1.0.0
Luminance0.021
Black text1.42:1AA Fail
White text14.79:1AA Pass
colorsPalette colors with roles and color systems
rolesPrimary, secondary, surface, background, and accent mapping
accessibilityContrast and WCAG text options by palette color
semanticGroupsAI-readable palette labels
useCasesDesign and implementation contexts
cssVariablesCopy-ready CSS custom properties
Download JSON Open API
Structured sections
Roles
[
  {
    "role": "primary",
    "hex": "#26282A",
    "name": "Slate Black"
  },
  {
    "role": "secondary",
    "hex": "#2B2927",
    "name": "#2B2927"
  },
  {
    "role": "surface",
    "hex": "#272B2B",
    "name": "#272B2B"
  },
  {
    "role": "background",
    "hex": "#27272B",
    "name": "#27272B"
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#26282A",
    "name": "Slate Black",
    "blackContrast": 1.42,
    "whiteContrast": 14.79,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "secondary",
    "hex": "#2B2927",
    "name": "#2B2927",
    "blackContrast": 1.45,
    "whiteContrast": 14.48,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "surface",
    "hex": "#272B2B",
    "name": "#272B2B",
    "blackContrast": 1.47,
    "whiteContrast": 14.32,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "background",
    "hex": "#27272B",
    "name": "#27272B",
    "blackContrast": 1.41,
    "whiteContrast": 14.87,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White",
    "blackContrast": 21,
    "whiteContrast": 1,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
]
Semantic groups
[
  "slate black palette",
  "generated palette",
  "gray palette",
  "dark palette",
  "light palette",
  "neutral palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion"
]
CSS variables
"--palette-slate-black-primary: #26282A;\n--palette-slate-black-secondary: #2B2927;\n--palette-slate-black-surface: #272B2B;\n--palette-slate-black-background: #27272B;\n--palette-slate-black-accent: #FFFFFF;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "slate-black",
  "name": "Slate Black Palette",
  "type": "generated",
  "sourceColor": "slate-black",
  "description": "Generated palette built from Slate Black, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Slate Black Palette combines primary #26282A, secondary #2B2927, surface #272B2B, background #27272B, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a gray palette, dark palette, light palette system for design system tokens, CSS variables, palette reference, and AI color ingestion, with each color mapped to roles, contrast data, CSS tokens, and machine-readable JSON.",
  "semanticGroups": [
    "slate black palette",
    "generated palette",
    "gray palette",
    "dark palette",
    "light palette",
    "neutral palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#26282A",
      "slug": "slate-black",
      "name": "Slate Black",
      "rgb": [
        38,
        40,
        42
      ],
      "hsl": [
        210,
        5,
        16
      ],
      "cmyk": [
        10,
        5,
        0,
        84
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "dark"
      ],
      "luminance": 0.021,
      "contrast": {
        "black": 1.42,
        "white": 14.79
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/slate-black/"
    },
    {
      "role": "secondary",
      "hex": "#2B2927",
      "slug": null,
      "name": "#2B2927",
      "rgb": [
        43,
        41,
        39
      ],
      "hsl": [
        30,
        5,
        16
      ],
      "cmyk": [
        0,
        5,
        9,
        83
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "dark"
      ],
      "luminance": 0.0225,
      "contrast": {
        "black": 1.45,
        "white": 14.48
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": null
    },
    {
      "role": "surface",
      "hex": "#272B2B",
      "slug": null,
      "name": "#272B2B",
      "rgb": [
        39,
        43,
        43
      ],
      "hsl": [
        180,
        5,
        16
      ],
      "cmyk": [
        9,
        0,
        0,
        83
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "dark"
      ],
      "luminance": 0.0233,
      "contrast": {
        "black": 1.47,
        "white": 14.32
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": null
    },
    {
      "role": "background",
      "hex": "#27272B",
      "slug": null,
      "name": "#27272B",
      "rgb": [
        39,
        39,
        43
      ],
      "hsl": [
        240,
        5,
        16
      ],
      "cmyk": [
        9,
        9,
        0,
        83
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "dark"
      ],
      "luminance": 0.0206,
      "contrast": {
        "black": 1.41,
        "white": 14.87
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": null
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "slug": "white",
      "name": "White",
      "rgb": [
        255,
        255,
        255
      ],
      "hsl": [
        0,
        0,
        100
      ],
      "cmyk": [
        0,
        0,
        0,
        0
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "light",
        "neutral"
      ],
      "luminance": 1,
      "contrast": {
        "black": 21,
        "white": 1
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/white/"
    }
  ],
  "roles": [
    {
      "role": "primary",
      "hex": "#26282A",
      "name": "Slate Black"
    },
    {
      "role": "secondary",
      "hex": "#2B2927",
      "name": "#2B2927"
    },
    {
      "role": "surface",
      "hex": "#272B2B",
      "name": "#272B2B"
    },
    {
      "role": "background",
      "hex": "#27272B",
      "name": "#27272B"
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#26282A",
      "name": "Slate Black",
      "blackContrast": 1.42,
      "whiteContrast": 14.79,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "secondary",
      "hex": "#2B2927",
      "name": "#2B2927",
      "blackContrast": 1.45,
      "whiteContrast": 14.48,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "surface",
      "hex": "#272B2B",
      "name": "#272B2B",
      "blackContrast": 1.47,
      "whiteContrast": 14.32,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "background",
      "hex": "#27272B",
      "name": "#27272B",
      "blackContrast": 1.41,
      "whiteContrast": 14.87,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White",
      "blackContrast": 21,
      "whiteContrast": 1,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    }
  ],
  "cssVariables": "--palette-slate-black-primary: #26282A;\n--palette-slate-black-secondary: #2B2927;\n--palette-slate-black-surface: #272B2B;\n--palette-slate-black-background: #27272B;\n--palette-slate-black-accent: #FFFFFF;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/slate-black.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/slate-black.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/slate-black/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/slate-black.json"
}