#040520
Dark Blue
HEX
RGB
HSL
About #040520 Dark Blue
#040520 is a dark blue color. In the RGB color model, it is composed of 4 red, 5 green, and 32 blue. In the HSL color space, it has a hue of 238°, saturation of 78%, and lightness of 7%.
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 #040520 in your CSS, SCSS, or Tailwind projects.
Color Properties
238°
Hue
78%
Saturation
7%
Lightness
Dark Blue
Color Harmonies
Colors that work well with #040520 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #040520 against white and black backgrounds.
Aa#040520 on White
Contrast Ratio20.04:1
AA ✓AA Large ✓AAA ✓
Aa#040520 on Black
Contrast Ratio1.05:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #040520 across different color formats.
| Format | Value |
|---|---|
| HEX | #040520 |
| RGB | rgb(4, 5, 32) |
| HSL | hsl(238, 78%, 7%) |
| RGB Decimal | 4, 5, 32 |
| RGB Percent | 1.6%, 2.0%, 12.5% |
| CMYK (approx.) | 88%, 84%, 0%, 87% |
Related Palettes
12 palettes using #040520 or similar colors