Gradient Page

#6654F1

#6654F1 is the HEX color code for
Royal Blue
Contrast
Dark
Luminance
42%
Color Conversions
Formats for Royal Blue (#6654F1) 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 #6654F1 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 {
  /* Royal Blue Base */
  --color-primary: #6654F1;
  --color-primary-rgb: 102 84 241;
  --color-primary-hsl: 247 85% 64%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #eae7fd;
  --color-primary-100: #c0b8f9;
  --color-primary-200: #9689f5;
  --color-primary-300: #6c5af2;
  --color-primary-400: #412bee;
  --color-primary-500: #2811d4;
  --color-primary-600: #1f0da5;
  --color-primary-700: #160a76;
  --color-primary-800: #0d0647;
  --color-primary-900: #040218;
}

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