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