dark blue is a shadcn/ui theme built around a blue primary color (#558de2) with indigo accents (#6355e2). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#558de2) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #05070ablack |
| Foreground | #060b14black | #f5f7fawhitesmoke |
| Card | #fbfcfewhite | #05070ablack |
| Card foreground | #060b14black | #f5f7fawhitesmoke |
| Popover | #fbfcfewhite | #05070ablack |
| Popover foreground | #060b14black | #f5f7fawhitesmoke |
| Primary | #558de2cornflowerblue | #558de2cornflowerblue |
| Primary foreground | #010204black | #010204black |
| Secondary | #55d4e2mediumturquoise | #55d4e2mediumturquoise |
| Secondary foreground | #010404black | #010404black |
| Muted | #e9f0f1whitesmoke | #0e1516black |
| Muted foreground | #3e4647darkslategray | #b8c0c1silver |
| Accent | #6355e2slateblue | #6355e2slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #79130bmaroon | #d72114firebrick |
| Destructive foreground | #f9c2belightpink | #ffffffwhite |
| Border | #e2e3e4gainsboro | #232325black |
| Input | #e2e3e4gainsboro | #232325black |
| Ring | #558de2cornflowerblue | #558de2cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 5.34:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 9.98:1 | AAA |
| Accent | 5.34:1 | AA |
| Destructive | 5.11:1 | AA |
Paste this into your globals.css to use dark blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 258.32);
--foreground: oklch(0.15 0.021 255.974);
--muted: oklch(0.951 0.007 204.932);
--muted-foreground: oklch(0.387 0.011 204.8);
--popover: oklch(0.991 0.003 258.32);
--popover-foreground: oklch(0.15 0.021 255.974);
--card: oklch(0.991 0.003 258.32);
--card-foreground: oklch(0.15 0.021 255.974);
--border: oklch(0.915 0.002 258.317);
--input: oklch(0.915 0.002 258.317);
--primary: oklch(0.645 0.141 258.312);
--primary-foreground: oklch(0.085 0.013 247.621);
--secondary: oklch(0.805 0.112 205.437);
--secondary-foreground: oklch(0.099 0.013 201.796);
--accent: oklch(0.546 0.206 281.637);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.374 0.138 29.467);
--destructive-foreground: oklch(0.861 0.064 23.193);
--ring: oklch(0.645 0.141 258.312);
--chart-1: oklch(0.645 0.141 258.312);
--chart-2: oklch(0.805 0.112 205.437);
--chart-3: oklch(0.546 0.206 281.637);
--chart-4: oklch(0.818 0.107 205.201);
--chart-5: oklch(0.644 0.147 258.331);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.009 253.705);
--foreground: oklch(0.975 0.004 258.324);
--muted: oklch(0.188 0.01 204.7);
--muted-foreground: oklch(0.803 0.009 204.904);
--popover: oklch(0.128 0.009 253.705);
--popover-foreground: oklch(0.975 0.004 258.324);
--card: oklch(0.128 0.009 253.705);
--card-foreground: oklch(0.975 0.004 258.324);
--border: oklch(0.258 0.003 258.338);
--input: oklch(0.258 0.003 258.338);
--primary: oklch(0.645 0.141 258.312);
--primary-foreground: oklch(0.085 0.013 247.621);
--secondary: oklch(0.805 0.112 205.437);
--secondary-foreground: oklch(0.099 0.013 201.796);
--accent: oklch(0.546 0.206 281.637);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.563 0.215 29.674);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.645 0.141 258.312);
--chart-1: oklch(0.645 0.141 258.312);
--chart-2: oklch(0.805 0.112 205.437);
--chart-3: oklch(0.546 0.206 281.637);
--chart-4: oklch(0.818 0.107 205.201);
--chart-5: oklch(0.644 0.147 258.331);
}