Gradient Page

#002E5D

#002E5D is the HEX color code for
Midnight Blue
#002E5D

Midnight Blue

Contrast
Dark
Luminance
15%
Color Conversions
Formats for Midnight Blue (#002E5D) in various color spaces.
#002E5D
0, 46, 93
210°, 100%, 18%
100%, 51%, 0%, 64%
0.303, 0.096, 253.9
--color-midnight-blue: #002E5D;

Shades & Tints

#e5f2ff
#b3d9ff
#80bfff
#4da6ff
#1a8cff
#0073e6
#0059b3
#004080
#00264d
#000d1a
DarkestBaseLightest

Color Harmonies

Complementary

#002E5D
#5c2e00

Analogous

#005c5c
#002E5D
#00005c

Triadic

#002E5D
#5c002e
#2e5c00

Split Complementary

#002E5D
#5c0000
#5c5c00

UI Component Examples

See how #002E5D 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 {
  /* Midnight Blue Base */
  --color-primary: #002E5D;
  --color-primary-rgb: 0 46 93;
  --color-primary-hsl: 210 100% 18%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #e5f2ff;
  --color-primary-100: #b3d9ff;
  --color-primary-200: #80bfff;
  --color-primary-300: #4da6ff;
  --color-primary-400: #1a8cff;
  --color-primary-500: #0073e6;
  --color-primary-600: #0059b3;
  --color-primary-700: #004080;
  --color-primary-800: #00264d;
  --color-primary-900: #000d1a;
}

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
#002E5D Hex Color | Midnight Blue sl | UI Color Scheme Generator