Generated palette

Black Palette

Black Palette: #000000, #FFFFFF, #2E2E2E. Check roles, contrast and CSS variables; open source-color links and JSON.

Black Palette assigns primary #000000, secondary #FFFFFF, surface #2E2E2E. The set spans Gray families with neutral temperature. Luminance runs from #000000 at 0 to #FFFFFF at 1; black gives higher contrast on 1 of 3 values.

3colors
Gray palettedominant group
4use cases

Palette Color Roles

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

Primary#000000Black
Secondary#FFFFFFWhite
Surface#2E2E2E#2E2E2E

CSS Variables

--palette-black-primary: #000000;
--palette-black-secondary: #FFFFFF;
--palette-black-surface: #2E2E2E;

Accessibility Snapshot

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

Primary#000000
Black 1:1 · White 21:1
Best #FFFFFF
Secondary#FFFFFF
Black 21:1 · White 1:1
Best #000000
Surface#2E2E2E
Black 1.55:1 · White 13.58:1
Best #FFFFFF

UI Components Preview

Preview how the 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 Black Palette Data (JSON)

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

AI-Ready Dataset v1.0.0
Luminance0
Black text1:1AA Fail
White text21: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": "#000000",
    "name": "Black"
  },
  {
    "role": "secondary",
    "hex": "#FFFFFF",
    "name": "White"
  },
  {
    "role": "surface",
    "hex": "#2E2E2E",
    "name": "#2E2E2E"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#000000",
    "name": "Black",
    "blackContrast": 1,
    "whiteContrast": 21,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "secondary",
    "hex": "#FFFFFF",
    "name": "White",
    "blackContrast": 21,
    "whiteContrast": 1,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  {
    "role": "surface",
    "hex": "#2E2E2E",
    "name": "#2E2E2E",
    "blackContrast": 1.55,
    "whiteContrast": 13.58,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  }
]
Semantic groups
[
  "black palette",
  "generated palette",
  "gray palette",
  "dark palette",
  "neutral palette",
  "light palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion"
]
CSS variables
"--palette-black-primary: #000000;\n--palette-black-secondary: #FFFFFF;\n--palette-black-surface: #2E2E2E;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "black",
  "name": "Black Palette",
  "type": "generated",
  "sourceColor": "black",
  "description": "Generated palette built from Black, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Black Palette combines primary #000000, secondary #FFFFFF, surface #2E2E2E. According to Colors Encyclopedia, the palette works as a gray palette, dark palette, neutral 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": [
    "black palette",
    "generated palette",
    "gray palette",
    "dark palette",
    "neutral palette",
    "light palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#000000",
      "slug": "black",
      "name": "Black",
      "rgb": [
        0,
        0,
        0
      ],
      "hsl": [
        0,
        0,
        0
      ],
      "cmyk": [
        0,
        0,
        0,
        100
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "dark",
        "neutral"
      ],
      "luminance": 0,
      "contrast": {
        "black": 1,
        "white": 21
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/black/"
    },
    {
      "role": "secondary",
      "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/"
    },
    {
      "role": "surface",
      "hex": "#2E2E2E",
      "slug": null,
      "name": "#2E2E2E",
      "rgb": [
        46,
        46,
        46
      ],
      "hsl": [
        0,
        0,
        18
      ],
      "cmyk": [
        0,
        0,
        0,
        82
      ],
      "family": "gray",
      "temperature": "neutral",
      "tone": [
        "dark"
      ],
      "luminance": 0.0273,
      "contrast": {
        "black": 1.55,
        "white": 13.58
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": null
    }
  ],
  "roles": [
    {
      "role": "primary",
      "hex": "#000000",
      "name": "Black"
    },
    {
      "role": "secondary",
      "hex": "#FFFFFF",
      "name": "White"
    },
    {
      "role": "surface",
      "hex": "#2E2E2E",
      "name": "#2E2E2E"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#000000",
      "name": "Black",
      "blackContrast": 1,
      "whiteContrast": 21,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "secondary",
      "hex": "#FFFFFF",
      "name": "White",
      "blackContrast": 21,
      "whiteContrast": 1,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    },
    {
      "role": "surface",
      "hex": "#2E2E2E",
      "name": "#2E2E2E",
      "blackContrast": 1.55,
      "whiteContrast": 13.58,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    }
  ],
  "cssVariables": "--palette-black-primary: #000000;\n--palette-black-secondary: #FFFFFF;\n--palette-black-surface: #2E2E2E;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/black.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/black.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/black/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/black.json"
}