Gradient Page

#0000CD

#0000CD is the HEX color code for
Dark Blue
Contrast
Dark
Luminance
9%
Color Conversions
Formats for Dark Blue (#0000CD) in various color spaces.
HEX
RGB
HSL
CMYK
OKLCH
CSS Variable

Shades & Tints

LightestBaseDarkest

Color Harmonies

Complementary

Analogous

Triadic

Split Complementary

UI Component Examples

See how #0000CD looks when applied to real interface components.

Interactive Elements
Surface & Accent
Pro Tip!

Use lighter tints for backgrounds to maintain readability while keeping brand identity.

Status Indicator
Active
# CSS Variables
Copy-paste these variables into your global CSS to use this palette instantly.
:root {
  /* Dark Blue Base */
  --color-primary: #0000CD;
  --color-primary-rgb: 0 0 205;
  --color-primary-hsl: 240 100% 40%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #e5e5ff;
  --color-primary-100: #b3b3ff;
  --color-primary-200: #8080ff;
  --color-primary-300: #4d4dff;
  --color-primary-400: #1a1aff;
  --color-primary-500: #0000e6;
  --color-primary-600: #0000b3;
  --color-primary-700: #000080;
  --color-primary-800: #00004d;
  --color-primary-900: #00001a;
}

Want more?

We hope you enjoyed this color. Keep reading for more amazing colorful content for developers, designers and creators!
View our entire collection of UI gradientsView all our color names