O2 Capital - final for shadcn/ui

O2 Capital - final is a shadcn/ui theme built around a deep blue primary color (#153754) with light yellow accents (#e3dbc5). The light mode uses a neutral background (#fcfbfe). Dark mode switches to a deep indigo primary (#1c1a47) on an indigo-tinted background (#050510).

Color palette

TokenLightDark
Background
#fcfbfewhite
#050510black
Foreground
#1d1d1dblack
#f9f8fbghostwhite
Card
#ffffffwhite
#070613black
Card foreground
#1d1d1dblack
#fcfcfdwhite
Popover
#fcfcfcsnow
#070613black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#153754darkslategray
#1c1a47midnightblue
Primary foreground
#ffffffwhite
#b3b1e2lightsteelblue
Secondary
#c5ad7bdarkkhaki
#1b1b22black
Secondary foreground
#ffffffwhite
#b0afc0silver
Muted
#ebeeefwhitesmoke
#202027black
Muted foreground
#535455dimgray
#b4b3c1silver
Accent
#e3dbc5lightgrey
#252438darkslategray
Accent foreground
#1d1d1dblack
#bcbbd3lightsteelblue
Destructive
#c00000firebrick
#e70704red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eef0f1whitesmoke
#17171cblack
Input
#cececelightgrey
#17171cblack
Ring
#002050midnightblue
#1c1a47midnightblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background16.35:1AAA
Text on card16.85:1AAA
Primary button12.30:1AAA
Secondary button2.17:1Fail
Muted text6.50:1AA
Accent12.20:1AAA
Destructive6.47:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.59:1AAA
Primary button7.98:1AAA
Secondary button7.93:1AAA
Muted text7.81:1AAA
Accent8.04:1AAA
Destructive4.73:1AA

CSS variables

Paste this into your globals.css to use O2 Capital - final in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 301.426);
  --foreground: oklch(0.231 0 180);
  --muted: oklch(0.947 0.003 219.534);
  --muted-foreground: oklch(0.445 0.002 247.87);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.231 0 180);
  --border: oklch(0.954 0.003 228.785);
  --input: oklch(0.851 0 180);
  --primary: oklch(0.327 0.065 247.196);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.757 0.072 85.096);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.892 0.031 90.342);
  --accent-foreground: oklch(0.231 0 180);
  --destructive: oklch(0.507 0.208 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.256 0.096 258.29);
  --chart-1: oklch(0.327 0.065 247.196);
  --chart-2: oklch(0.757 0.072 85.096);
  --chart-3: oklch(0.892 0.031 90.342);
  --chart-4: oklch(0.776 0.066 85.199);
  --chart-5: oklch(0.328 0.068 247.49);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.026 284.939);
  --foreground: oklch(0.981 0.004 288.632);
  --muted: oklch(0.248 0.013 287.667);
  --muted-foreground: oklch(0.772 0.019 288.235);
  --popover: oklch(0.133 0.03 284.355);
  --popover-foreground: oklch(0.991 0.002 288.671);
  --card: oklch(0.133 0.03 284.355);
  --card-foreground: oklch(0.991 0.002 288.671);
  --border: oklch(0.207 0.01 287.782);
  --input: oklch(0.207 0.01 287.782);
  --primary: oklch(0.25 0.081 281.065);
  --primary-foreground: oklch(0.779 0.07 286.949);
  --secondary: oklch(0.226 0.014 287.498);
  --secondary-foreground: oklch(0.76 0.024 288.104);
  --accent: oklch(0.272 0.035 286.067);
  --accent-foreground: oklch(0.801 0.033 287.924);
  --destructive: oklch(0.584 0.238 29.269);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.081 281.065);
  --chart-1: oklch(0.25 0.081 281.065);
  --chart-2: oklch(0.226 0.014 287.498);
  --chart-3: oklch(0.272 0.035 286.067);
  --chart-4: oklch(0.255 0.017 287.406);
  --chart-5: oklch(0.247 0.086 280.326);
}