#040C2F
Dark Blue
HEX
RGB
HSL
About #040C2F Dark Blue
#040C2F is a dark blue color. In the RGB color model, it is composed of 4 red, 12 green, and 47 blue. In the HSL color space, it has a hue of 229°, saturation of 84%, and lightness of 10%.
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 #040C2F in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
229°
Hue
84%
Saturation
10%
Lightness
Dark Blue
Color Harmonies
Colors that work well with #040C2F based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #040C2F against white and black backgrounds.
Aa#040C2F on White
Contrast Ratio19.11:1
AA ✓AA Large ✓AAA ✓
Aa#040C2F on Black
Contrast Ratio1.1:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #040C2F across different color formats.
| Format | Value |
|---|---|
| HEX | #040C2F |
| RGB | rgb(4, 12, 47) |
| HSL | hsl(229, 84%, 10%) |
| RGB Decimal | 4, 12, 47 |
| RGB Percent | 1.6%, 4.7%, 18.4% |
| CMYK (approx.) | 91%, 74%, 0%, 82% |
Related Palettes
12 palettes using #040C2F or similar colors