HSL(204, 75%, 7%)
Very Dark Blue — Blue color
Adjust Color
Color Information
Color Name
Very Dark Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(204,75%,7%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(204, 75%, 7%) | color: hsl(204, 75%, 7%) | |
| HEX | #04151F | color: #04151F | |
| RGB | rgb(4, 21, 31) | color: rgb(4, 21, 31) | |
| CMYK | cmyk(87%, 32%, 0%, 88%) | — | |
| HSV | hsv(202, 87%, 12%) | — | |
| HWB | hwb(202 2% 88%) | color: hwb(202 2% 88%) | |
| OKLCH | oklch(0.1862 0.0315 235.58) | color: oklch(0.1862 0.0315 235.58) | |
| Lab | lab(5.97 -2.57 -8.91) | color: lab(5.97 -2.57 -8.91) | |
| LCH | lch(5.97 9.27 253.91) | color: lch(5.97 9.27 253.91) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#0B0C1D — rgb(11, 12, 29)
Deuteranopia (Green-blind)
#0A091C — rgb(10, 9, 28)
Tritanopia (Blue-blind)
#051B1A — rgb(5, 27, 26)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(204, 75%, 7%);
text
color: hsl(204, 75%, 7%);
border
border: 2px solid hsl(204, 75%, 7%);
gradient light
background: linear-gradient(to right, hsl(204, 75%, 27%), hsl(204, 75%, 7%));
gradient dark
background: linear-gradient(to right, hsl(204, 75%, 7%), hsl(204, 75%, 0%))
hex
background-color: #04151F;
tailwind
bg-[hsl(204,75%,7%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(204, 75%, 7%, 0.4);
css variable
--color-primary: hsl(204, 75%, 7%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(204, 75%, 7%)?
HEX: #04151F | RGB: rgb(4, 21, 31) | CMYK: 87%, 32%, 0%, 88% | HSV: 202°, 87%, 12%. Copy any format from the conversion table above.
What colors go well with #04151F?
The complementary color is HSL(24, 75%, 7%). For a triadic harmony, use hues 204°, 324°, and 84°. For analogous combinations, try hues 174° and 234°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(204, 75%, 7%) in CSS?
As HSL: color: hsl(204, 75%, 7%); — As HEX: color: #04151F; — As RGB: color: rgb(4, 21, 31); — Tailwind CSS: bg-[hsl(204,75%,7%)] — CSS variable: --color-primary: hsl(204, 75%, 7%);