HSL(227, 79%, 8%)
Very Dark Blue — Blue color
Adjust Color
Color Information
Color Name
Very Dark Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,79%,8%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 79%, 8%) | color: hsl(227, 79%, 8%) | |
| HEX | #040B25 | color: #040B25 | |
| RGB | rgb(4, 11, 37) | color: rgb(4, 11, 37) | |
| CMYK | cmyk(89%, 70%, 0%, 85%) | — | |
| HSV | hsv(227, 89%, 15%) | — | |
| HWB | hwb(227 2% 85%) | color: hwb(227 2% 85%) | |
| OKLCH | oklch(0.1615 0.0555 266.32) | color: oklch(0.1615 0.0555 266.32) | |
| Lab | lab(3.6 5.11 -17.16) | color: lab(3.6 5.11 -17.16) | |
| LCH | lch(3.6 17.9 286.58) | color: lch(3.6 17.9 286.58) |
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)
#07071F — rgb(7, 7, 31)
Deuteranopia (Green-blind)
#07061D — rgb(7, 6, 29)
Tritanopia (Blue-blind)
#041A19 — rgb(4, 26, 25)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 79%, 8%);
text
color: hsl(227, 79%, 8%);
border
border: 2px solid hsl(227, 79%, 8%);
gradient light
background: linear-gradient(to right, hsl(227, 79%, 28%), hsl(227, 79%, 8%));
gradient dark
background: linear-gradient(to right, hsl(227, 79%, 8%), hsl(227, 79%, 0%))
hex
background-color: #040B25;
tailwind
bg-[hsl(227,79%,8%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 79%, 8%, 0.4);
css variable
--color-primary: hsl(227, 79%, 8%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 79%, 8%)?
HEX: #040B25 | RGB: rgb(4, 11, 37) | CMYK: 89%, 70%, 0%, 85% | HSV: 227°, 89%, 15%. Copy any format from the conversion table above.
What colors go well with #040B25?
The complementary color is HSL(47, 79%, 8%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(227, 79%, 8%) in CSS?
As HSL: color: hsl(227, 79%, 8%); — As HEX: color: #040B25; — As RGB: color: rgb(4, 11, 37); — Tailwind CSS: bg-[hsl(227,79%,8%)] — CSS variable: --color-primary: hsl(227, 79%, 8%);