Generated palette

Petrol Blue Palette

Petrol Blue Palette: #005F6A, #6B0B00, #006B40, #002B6B. Check roles, contrast and CSS variables; open source-color links and JSON.

Petrol Blue Palette assigns primary #005F6A, secondary #6B0B00, surface #006B40, background #002B6B, accent #FFFFFF. The set spans Cyan, Red, Green, and Blue families with cool, warm, and neutral temperatures. Luminance runs from #002B6B at 0.0279 to #FFFFFF at 1; black gives higher contrast on 1 of 5 values.

5colors
Cyan palettedominant group
6use cases

Palette Color Roles

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

Primary#005F6APetrol Blue
Secondary#6B0B00#6B0B00
Surface#006B40#006B40
Background#002B6B#002B6B
Accent#FFFFFFWhite

CSS Variables

--palette-petrol-blue-primary: #005F6A;
--palette-petrol-blue-secondary: #6B0B00;
--palette-petrol-blue-surface: #006B40;
--palette-petrol-blue-background: #002B6B;
--palette-petrol-blue-accent: #FFFFFF;

Accessibility Snapshot

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

Primary#005F6A
Black 2.85:1 · White 7.38:1
Best #FFFFFF
Secondary#6B0B00
Black 1.67:1 · White 12.54:1
Best #FFFFFF
Surface#006B40
Black 3.18:1 · White 6.61:1
Best #FFFFFF
Background#002B6B
Black 1.56:1 · White 13.48:1
Best #FFFFFF
Accent#FFFFFF
Black 21:1 · White 1:1
Best #000000

UI Components Preview

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

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

AI-Ready Dataset v1.0.0
Luminance0.0923
Black text2.85:1AA Fail
White text7.38: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": "#005F6A",
    "name": "Petrol Blue"
  },
  {
    "role": "secondary",
    "hex": "#6B0B00",
    "name": "#6B0B00"
  },
  {
    "role": "surface",
    "hex": "#006B40",
    "name": "#006B40"
  },
  {
    "role": "background",
    "hex": "#002B6B",
    "name": "#002B6B"
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#005F6A",
    "name": "Petrol Blue",
    "blackContrast": 2.85,
    "whiteContrast": 7.38,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF"
    ]
  },
  {
    "role": "secondary",
    "hex": "#6B0B00",
    "name": "#6B0B00",
    "blackContrast": 1.67,
    "whiteContrast": 12.54,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ]
  },
  {
    "role": "surface",
    "hex": "#006B40",
    "name": "#006B40",
    "blackContrast": 3.18,
    "whiteContrast": 6.61,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "background",
    "hex": "#002B6B",
    "name": "#002B6B",
    "blackContrast": 1.56,
    "whiteContrast": 13.48,
    "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
[
  "petrol blue palette",
  "generated palette",
  "cyan palette",
  "red palette",
  "green palette",
  "blue palette",
  "gray palette",
  "dark palette",
  "jewel tone palette",
  "light palette",
  "neutral palette",
  "cool palette",
  "warm palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion",
  "wellness and botanical palettes",
  "calm digital interfaces"
]
CSS variables
"--palette-petrol-blue-primary: #005F6A;\n--palette-petrol-blue-secondary: #6B0B00;\n--palette-petrol-blue-surface: #006B40;\n--palette-petrol-blue-background: #002B6B;\n--palette-petrol-blue-accent: #FFFFFF;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "petrol-blue",
  "name": "Petrol Blue Palette",
  "type": "generated",
  "sourceColor": "petrol-blue",
  "description": "Generated palette built from Petrol Blue, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Petrol Blue Palette combines primary #005F6A, secondary #6B0B00, surface #006B40, background #002B6B, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a cyan palette, red palette, green 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": [
    "petrol blue palette",
    "generated palette",
    "cyan palette",
    "red palette",
    "green palette",
    "blue palette",
    "gray palette",
    "dark palette",
    "jewel tone palette",
    "light palette",
    "neutral palette",
    "cool palette",
    "warm palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion",
    "wellness and botanical palettes",
    "calm digital interfaces"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#005F6A",
      "slug": "petrol-blue",
      "name": "Petrol Blue",
      "rgb": [
        0,
        95,
        106
      ],
      "hsl": [
        186,
        100,
        21
      ],
      "cmyk": [
        100,
        10,
        0,
        58
      ],
      "family": "cyan",
      "temperature": "cool",
      "tone": [
        "dark"
      ],
      "luminance": 0.0923,
      "contrast": {
        "black": 2.85,
        "white": 7.38
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF"
        ]
      },
      "url": "https://www.colorsencyclopedia.com/colors/petrol-blue/"
    },
    {
      "role": "secondary",
      "hex": "#6B0B00",
      "slug": null,
      "name": "#6B0B00",
      "rgb": [
        107,
        11,
        0
      ],
      "hsl": [
        6,
        100,
        21
      ],
      "cmyk": [
        0,
        90,
        100,
        58
      ],
      "family": "red",
      "temperature": "warm",
      "tone": [
        "dark"
      ],
      "luminance": 0.0337,
      "contrast": {
        "black": 1.67,
        "white": 12.54
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": [
          "#FFFFFF",
          "#F5F5F5"
        ]
      },
      "url": null
    },
    {
      "role": "surface",
      "hex": "#006B40",
      "slug": null,
      "name": "#006B40",
      "rgb": [
        0,
        107,
        64
      ],
      "hsl": [
        156,
        100,
        21
      ],
      "cmyk": [
        100,
        0,
        40,
        58
      ],
      "family": "green",
      "temperature": "cool",
      "tone": [
        "dark",
        "jewel-tone"
      ],
      "luminance": 0.1089,
      "contrast": {
        "black": 3.18,
        "white": 6.61
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": []
      },
      "url": null
    },
    {
      "role": "background",
      "hex": "#002B6B",
      "slug": null,
      "name": "#002B6B",
      "rgb": [
        0,
        43,
        107
      ],
      "hsl": [
        216,
        100,
        21
      ],
      "cmyk": [
        100,
        60,
        0,
        58
      ],
      "family": "blue",
      "temperature": "cool",
      "tone": [
        "dark",
        "jewel-tone"
      ],
      "luminance": 0.0279,
      "contrast": {
        "black": 1.56,
        "white": 13.48
      },
      "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": "#005F6A",
      "name": "Petrol Blue"
    },
    {
      "role": "secondary",
      "hex": "#6B0B00",
      "name": "#6B0B00"
    },
    {
      "role": "surface",
      "hex": "#006B40",
      "name": "#006B40"
    },
    {
      "role": "background",
      "hex": "#002B6B",
      "name": "#002B6B"
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#005F6A",
      "name": "Petrol Blue",
      "blackContrast": 2.85,
      "whiteContrast": 7.38,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF"
      ]
    },
    {
      "role": "secondary",
      "hex": "#6B0B00",
      "name": "#6B0B00",
      "blackContrast": 1.67,
      "whiteContrast": 12.54,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ]
    },
    {
      "role": "surface",
      "hex": "#006B40",
      "name": "#006B40",
      "blackContrast": 3.18,
      "whiteContrast": 6.61,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "background",
      "hex": "#002B6B",
      "name": "#002B6B",
      "blackContrast": 1.56,
      "whiteContrast": 13.48,
      "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-petrol-blue-primary: #005F6A;\n--palette-petrol-blue-secondary: #6B0B00;\n--palette-petrol-blue-surface: #006B40;\n--palette-petrol-blue-background: #002B6B;\n--palette-petrol-blue-accent: #FFFFFF;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/petrol-blue.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/petrol-blue.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/petrol-blue/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/petrol-blue.json"
}