Dark Blue is a shadcn/ui theme built around a vivid blue primary color (#1c8ad4) with muted light blue accents (#d3dade). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the vivid blue primary (#3d61ff) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fbfdghostwhite | #000000black |
| Foreground | #000000black | #f5f8f9whitesmoke |
| Card | #f2f8fdaliceblue | #030303black |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #f6fbfdghostwhite | #000000black |
| Popover foreground | #000000black | #f5f8f9whitesmoke |
| Primary | #1c8ad4dodgerblue | #3d61ffroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6e8ealavender | #1d252adarkslategray |
| Secondary foreground | #485056darkslategray | #b1bfc9silver |
| Muted | #d8e2e9gainsboro | #162027black |
| Muted foreground | #515558dimgray | #a7acaedarkgray |
| Accent | #d3dadegainsboro | #24333ddarkslategray |
| Accent foreground | #364249darkslategray | #bcccd7lightsteelblue |
| Destructive | #bc3306firebrick | #f9622ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c8ad4dodgerblue | #1c8ad4dodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.72:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 4.82:1 | AA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.78:1 | AA |
Paste this into your globals.css to use Dark Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.006 236.522);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.015 236.676);
--muted-foreground: oklch(0.446 0.007 236.657);
--popover: oklch(0.985 0.006 236.522);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.977 0.009 236.567);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.613 0.145 244.877);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.931 0.003 236.489);
--secondary-foreground: oklch(0.427 0.014 236.943);
--accent: oklch(0.884 0.01 236.595);
--accent-foreground: oklch(0.371 0.02 237.285);
--destructive: oklch(0.528 0.18 35.551);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.613 0.145 244.877);
--chart-1: oklch(0.613 0.145 244.877);
--chart-2: oklch(0.931 0.003 236.489);
--chart-3: oklch(0.884 0.01 236.595);
--chart-4: oklch(0.954 0.002 236.47);
--chart-5: oklch(0.616 0.149 245.377);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.003 236.482);
--muted: oklch(0.238 0.02 237.918);
--muted-foreground: oklch(0.74 0.006 236.552);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.977 0.003 236.482);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.002 236.466);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.567 0.237 267.819);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.259 0.015 237.334);
--secondary-foreground: oklch(0.797 0.021 236.821);
--accent: oklch(0.312 0.026 237.873);
--accent-foreground: oklch(0.837 0.023 236.844);
--destructive: oklch(0.682 0.195 37.882);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.613 0.145 244.877);
--chart-1: oklch(0.567 0.237 267.819);
--chart-2: oklch(0.259 0.015 237.334);
--chart-3: oklch(0.312 0.026 237.873);
--chart-4: oklch(0.291 0.017 237.387);
--chart-5: oklch(0.566 0.243 267.539);
}