Blue Rich 2 is a shadcn/ui theme built around a vivid blue primary color (#1d4ed8) with near-white accents (#efefef). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid blue primary (#1d4ed8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1d4ed8royalblue | #1d4ed8royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #60a5facornflowerblue | #60a5facornflowerblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e4e4e4gainsboro | #28282bdarkslategray |
| Muted foreground | #000000black | #ffffffwhite |
| Accent | #efefefwhitesmoke | #151516black |
| Accent foreground | #000000black | #ffffffwhite |
| Destructive | #dc2626crimson | #dc2626crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eeeef2whitesmoke | #22222bdarkslategray |
| Input | #eeeef2whitesmoke | #22222bdarkslategray |
| Ring | #1d4ed8royalblue | #1c19b8mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 16.44:1 | AAA |
| Accent | 18.31:1 | AAA |
| Destructive | 4.82:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 14.77:1 | AAA |
| Accent | 18.29:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Blue Rich 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 287.104);
--foreground: oklch(0 0 0);
--muted: oklch(0.917 0 172.875);
--muted-foreground: oklch(0 0 0);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.95 0.005 287.075);
--input: oklch(0.95 0.005 287.075);
--primary: oklch(0.488 0.217 264.377);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.714 0.143 254.628);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.953 0 198.435);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.577 0.215 27.324);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.488 0.217 264.377);
--chart-1: oklch(0.424 0.181 265.637);
--chart-2: oklch(0.525 0.199 3.958);
--chart-3: oklch(0.754 0.139 232.665);
--chart-4: oklch(0.511 0.086 186.392);
--chart-5: oklch(0.491 0.241 292.58);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.277 0.007 286.729);
--muted-foreground: oklch(1 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.255 0.017 285.877);
--input: oklch(0.255 0.017 285.877);
--primary: oklch(0.488 0.217 264.377);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.714 0.143 254.628);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.195 0.002 287.011);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.577 0.215 27.324);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.378 0.229 268.627);
--chart-1: oklch(0.535 0.234 263.145);
--chart-2: oklch(0.692 0.136 170.947);
--chart-3: oklch(0.412 0.192 325.354);
--chart-4: oklch(0.734 0 180);
--chart-5: oklch(0.291 0.061 128.062);
}