Misleading Royal Blue is a shadcn/ui theme built around a blue primary color (#4c6ad6) with violet accents (#734cd6). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the blue primary (#4c6ad6) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #04050cblack | #f6f7f8whitesmoke |
| Card | #f7f8fdghostwhite | #030407black |
| Card foreground | #020408black | #f9f9fbghostwhite |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #04050cblack | #f6f7f8whitesmoke |
| Primary | #4c6ad6royalblue | #4c6ad6royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4cafd6mediumturquoise | #4cafd6mediumturquoise |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8ecedlavender | #121517black |
| Muted foreground | #4d5b60dimgray | #9facb2darkgray |
| Accent | #734cd6slateblue | #734cd6slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #af260dfirebrick | #ee3b1borangered |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #eeeef2whitesmoke | #1a1c23black |
| Input | #eeeef2whitesmoke | #1a1c23black |
| Ring | #4c6ad6royalblue | #4c6ad6royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 4.82:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 5.59:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 4.82:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 5.59:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Misleading Royal Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 273.824);
--foreground: oklch(0.119 0.017 267.506);
--muted: oklch(0.94 0.004 223.175);
--muted-foreground: oklch(0.461 0.019 223.642);
--popover: oklch(0.99 0.004 273.824);
--popover-foreground: oklch(0.119 0.017 267.506);
--card: oklch(0.979 0.007 273.782);
--card-foreground: oklch(0.104 0.015 267.385);
--border: oklch(0.951 0.005 273.81);
--input: oklch(0.951 0.005 273.81);
--primary: oklch(0.56 0.169 268.771);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.712 0.108 227.345);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.537 0.201 291.139);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.493 0.177 32.07);
--destructive-foreground: oklch(0.972 0.012 29.514);
--ring: oklch(0.56 0.169 268.771);
--chart-1: oklch(0.56 0.169 268.771);
--chart-2: oklch(0.712 0.108 227.345);
--chart-3: oklch(0.537 0.201 291.139);
--chart-4: oklch(0.731 0.102 226.63);
--chart-5: oklch(0.557 0.177 268.462);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.008 269.757);
--foreground: oklch(0.975 0.002 273.837);
--muted: oklch(0.195 0.006 223.496);
--muted-foreground: oklch(0.737 0.017 223.389);
--popover: oklch(0.086 0.008 269.757);
--popover-foreground: oklch(0.975 0.002 273.837);
--card: oklch(0.108 0.01 269.757);
--card-foreground: oklch(0.984 0.002 273.846);
--border: oklch(0.228 0.013 273.121);
--input: oklch(0.228 0.013 273.121);
--primary: oklch(0.56 0.169 268.771);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.712 0.108 227.345);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.537 0.201 291.139);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.219 32.2);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.56 0.169 268.771);
--chart-1: oklch(0.56 0.169 268.771);
--chart-2: oklch(0.712 0.108 227.345);
--chart-3: oklch(0.537 0.201 291.139);
--chart-4: oklch(0.731 0.102 226.63);
--chart-5: oklch(0.557 0.177 268.462);
}