#040080
Vivid Blue
HEX
RGB
HSL
About #040080 Vivid Blue
#040080 is a vivid blue color. In the RGB color model, it is composed of 4 red, 0 green, and 128 blue. In the HSL color space, it has a hue of 242°, saturation of 100%, and lightness of 25%.
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
Use #040080 in your CSS, SCSS, or Tailwind projects.
Color Properties
242°
Hue
100%
Saturation
25%
Lightness
Vivid Blue
Color Harmonies
Colors that work well with #040080 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #040080 against white and black backgrounds.
Aa#040080 on White
Contrast Ratio15.95:1
AA ✓AA Large ✓AAA ✓
Aa#040080 on Black
Contrast Ratio1.32:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #040080 across different color formats.
| Format | Value |
|---|---|
| HEX | #040080 |
| RGB | rgb(4, 0, 128) |
| HSL | hsl(242, 100%, 25%) |
| RGB Decimal | 4, 0, 128 |
| RGB Percent | 1.6%, 0.0%, 50.2% |
| CMYK (approx.) | 97%, 100%, 0%, 50% |
Related Palettes
12 palettes using #040080 or similar colors