Generated palette

Royal Blue Palette

Royal Blue Palette: #4169E1, #E1B941, #41B9E1, #6941E1. Check roles, contrast and CSS variables; open source-color links and JSON.

Royal Blue Palette assigns primary #4169E1, secondary #E1B941, surface #41B9E1, background #6941E1, accent #FFFFFF. The set spans Blue, Yellow, Purple, and Gray families with cool, warm, and neutral temperatures. Luminance runs from #6941E1 at 0.1222 to #FFFFFF at 1; black gives higher contrast on 3 of 5 values.

5colors
Blue palettedominant group
5use cases

Palette Color Roles

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

Primary#4169E1Royal Blue
Secondary#E1B941#E1B941
Surface#41B9E1#41B9E1
Background#6941E1#6941E1
Accent#FFFFFFWhite

CSS Variables

--palette-royal-blue-primary: #4169E1;
--palette-royal-blue-secondary: #E1B941;
--palette-royal-blue-surface: #41B9E1;
--palette-royal-blue-background: #6941E1;
--palette-royal-blue-accent: #FFFFFF;

Accessibility Snapshot

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

Primary#4169E1
Black 4.33:1 · White 4.85:1
Best #FFFFFF
Secondary#E1B941
Black 11.22:1 · White 1.87:1
Best #000000
Surface#41B9E1
Black 9.25:1 · White 2.27:1
Best #000000
Background#6941E1
Black 3.44:1 · White 6.1:1
Best #FFFFFF
Accent#FFFFFF
Black 21:1 · White 1:1
Best #000000

UI Components Preview

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

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

AI-Ready Dataset v1.0.0
Luminance0.1666
Black text4.33:1AA Fail
White text4.85: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": "#4169E1",
    "name": "Royal Blue"
  },
  {
    "role": "secondary",
    "hex": "#E1B941",
    "name": "#E1B941"
  },
  {
    "role": "surface",
    "hex": "#41B9E1",
    "name": "#41B9E1"
  },
  {
    "role": "background",
    "hex": "#6941E1",
    "name": "#6941E1"
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White"
  }
]
Accessibility
[
  {
    "role": "primary",
    "hex": "#4169E1",
    "name": "Royal Blue",
    "blackContrast": 4.33,
    "whiteContrast": 4.85,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "secondary",
    "hex": "#E1B941",
    "name": "#E1B941",
    "blackContrast": 11.22,
    "whiteContrast": 1.87,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A"
    ]
  },
  {
    "role": "surface",
    "hex": "#41B9E1",
    "name": "#41B9E1",
    "blackContrast": 9.25,
    "whiteContrast": 2.27,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A"
    ]
  },
  {
    "role": "background",
    "hex": "#6941E1",
    "name": "#6941E1",
    "blackContrast": 3.44,
    "whiteContrast": 6.1,
    "bestTextColor": "#FFFFFF",
    "aaTextOptions": [
      "#FFFFFF",
      "#F5F5F5"
    ],
    "aaaTextOptions": []
  },
  {
    "role": "accent",
    "hex": "#FFFFFF",
    "name": "White",
    "blackContrast": 21,
    "whiteContrast": 1,
    "bestTextColor": "#000000",
    "aaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "aaaTextOptions": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  }
]
Semantic groups
[
  "royal blue palette",
  "generated palette",
  "blue palette",
  "yellow palette",
  "purple palette",
  "gray palette",
  "vibrant palette",
  "light palette",
  "neutral palette",
  "cool palette",
  "warm palette"
]
Use cases
[
  "design system tokens",
  "CSS variables",
  "palette reference",
  "AI color ingestion",
  "calm digital interfaces"
]
CSS variables
"--palette-royal-blue-primary: #4169E1;\n--palette-royal-blue-secondary: #E1B941;\n--palette-royal-blue-surface: #41B9E1;\n--palette-royal-blue-background: #6941E1;\n--palette-royal-blue-accent: #FFFFFF;"
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "royal-blue",
  "name": "Royal Blue Palette",
  "type": "generated",
  "sourceColor": "royal-blue",
  "description": "Generated palette built from Royal Blue, its harmonies, a high-contrast pairing, and a light variant.",
  "narrative": "Royal Blue Palette combines primary #4169E1, secondary #E1B941, surface #41B9E1, background #6941E1, accent #FFFFFF. According to Colors Encyclopedia, the palette works as a blue palette, yellow palette, purple 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": [
    "royal blue palette",
    "generated palette",
    "blue palette",
    "yellow palette",
    "purple palette",
    "gray palette",
    "vibrant palette",
    "light palette",
    "neutral palette",
    "cool palette",
    "warm palette"
  ],
  "useCases": [
    "design system tokens",
    "CSS variables",
    "palette reference",
    "AI color ingestion",
    "calm digital interfaces"
  ],
  "colors": [
    {
      "role": "primary",
      "hex": "#4169E1",
      "slug": "royal-blue",
      "name": "Royal Blue",
      "rgb": [
        65,
        105,
        225
      ],
      "hsl": [
        225,
        73,
        57
      ],
      "cmyk": [
        71,
        53,
        0,
        12
      ],
      "family": "blue",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.1666,
      "contrast": {
        "black": 4.33,
        "white": 4.85
      },
      "wcag": {
        "AA": [
          "#FFFFFF"
        ],
        "AAA": []
      },
      "url": "https://www.colorsencyclopedia.com/colors/royal-blue/"
    },
    {
      "role": "secondary",
      "hex": "#E1B941",
      "slug": null,
      "name": "#E1B941",
      "rgb": [
        225,
        185,
        65
      ],
      "hsl": [
        45,
        73,
        57
      ],
      "cmyk": [
        0,
        18,
        71,
        12
      ],
      "family": "yellow",
      "temperature": "warm",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.5109,
      "contrast": {
        "black": 11.22,
        "white": 1.87
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A"
        ]
      },
      "url": null
    },
    {
      "role": "surface",
      "hex": "#41B9E1",
      "slug": null,
      "name": "#41B9E1",
      "rgb": [
        65,
        185,
        225
      ],
      "hsl": [
        195,
        73,
        57
      ],
      "cmyk": [
        71,
        18,
        0,
        12
      ],
      "family": "blue",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.4126,
      "contrast": {
        "black": 9.25,
        "white": 2.27
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A"
        ]
      },
      "url": null
    },
    {
      "role": "background",
      "hex": "#6941E1",
      "slug": null,
      "name": "#6941E1",
      "rgb": [
        105,
        65,
        225
      ],
      "hsl": [
        255,
        73,
        57
      ],
      "cmyk": [
        53,
        71,
        0,
        12
      ],
      "family": "purple",
      "temperature": "cool",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.1222,
      "contrast": {
        "black": 3.44,
        "white": 6.1
      },
      "wcag": {
        "AA": [
          "#FFFFFF",
          "#F5F5F5"
        ],
        "AAA": []
      },
      "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": "#4169E1",
      "name": "Royal Blue"
    },
    {
      "role": "secondary",
      "hex": "#E1B941",
      "name": "#E1B941"
    },
    {
      "role": "surface",
      "hex": "#41B9E1",
      "name": "#41B9E1"
    },
    {
      "role": "background",
      "hex": "#6941E1",
      "name": "#6941E1"
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White"
    }
  ],
  "accessibility": [
    {
      "role": "primary",
      "hex": "#4169E1",
      "name": "Royal Blue",
      "blackContrast": 4.33,
      "whiteContrast": 4.85,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "secondary",
      "hex": "#E1B941",
      "name": "#E1B941",
      "blackContrast": 11.22,
      "whiteContrast": 1.87,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A"
      ]
    },
    {
      "role": "surface",
      "hex": "#41B9E1",
      "name": "#41B9E1",
      "blackContrast": 9.25,
      "whiteContrast": 2.27,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A"
      ]
    },
    {
      "role": "background",
      "hex": "#6941E1",
      "name": "#6941E1",
      "blackContrast": 3.44,
      "whiteContrast": 6.1,
      "bestTextColor": "#FFFFFF",
      "aaTextOptions": [
        "#FFFFFF",
        "#F5F5F5"
      ],
      "aaaTextOptions": []
    },
    {
      "role": "accent",
      "hex": "#FFFFFF",
      "name": "White",
      "blackContrast": 21,
      "whiteContrast": 1,
      "bestTextColor": "#000000",
      "aaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "aaaTextOptions": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    }
  ],
  "cssVariables": "--palette-royal-blue-primary: #4169E1;\n--palette-royal-blue-secondary: #E1B941;\n--palette-royal-blue-surface: #41B9E1;\n--palette-royal-blue-background: #6941E1;\n--palette-royal-blue-accent: #FFFFFF;",
  "relatedEndpoints": [
    "https://www.colorsencyclopedia.com/api/palettes/royal-blue.json",
    "https://www.colorsencyclopedia.com/api/palettes.json",
    "https://www.colorsencyclopedia.com/api/colors/royal-blue.json"
  ],
  "url": "https://www.colorsencyclopedia.com/palettes/royal-blue/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/palettes/royal-blue.json"
}