#040CA6
Vivid Blue
HEX
RGB
HSL
About #040CA6 Vivid Blue
#040CA6 is a vivid blue color. In the RGB color model, it is composed of 4 red, 12 green, and 166 blue. In the HSL color space, it has a hue of 237°, saturation of 95%, and lightness of 33%.
This color has a low lightness value, making it a dark color great for text and bold accents. With high saturation, it appears vibrant and eye-catching.
CSS Code & Gradients
Use #040CA6 in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
237°
Hue
95%
Saturation
33%
Lightness
Vivid Blue
Color Harmonies
Colors that work well with #040CA6 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #040CA6 against white and black backgrounds.
Aa#040CA6 on White
Contrast Ratio13.06:1
AA ✓AA Large ✓AAA ✓
Aa#040CA6 on Black
Contrast Ratio1.61:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #040CA6 across different color formats.
| Format | Value |
|---|---|
| HEX | #040CA6 |
| RGB | rgb(4, 12, 166) |
| HSL | hsl(237, 95%, 33%) |
| RGB Decimal | 4, 12, 166 |
| RGB Percent | 1.6%, 4.7%, 65.1% |
| CMYK (approx.) | 98%, 93%, 0%, 35% |
Related Palettes
12 palettes using #040CA6 or similar colors