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