HSL(251, 84%, 10%)
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(251,84%,10%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 84%, 10%) | color: hsl(251, 84%, 10%) | |
| HEX | #0C042F | color: #0C042F | |
| RGB | rgb(12, 4, 47) | color: rgb(12, 4, 47) | |
| CMYK | cmyk(74%, 91%, 0%, 82%) | — | |
| HSV | hsv(251, 91%, 18%) | — | |
| HWB | hwb(251 2% 82%) | color: hwb(251 2% 82%) | |
| OKLCH | oklch(0.1638 0.0814 282.56) | color: oklch(0.1638 0.0814 282.56) | |
| Lab | lab(3.34 14.59 -25.13) | color: lab(3.34 14.59 -25.13) | |
| LCH | lch(3.34 29.06 300.14) | color: lch(3.34 29.06 300.14) |
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)
#090825 — rgb(9, 8, 37)
Deuteranopia (Green-blind)
#090A22 — rgb(9, 10, 34)
Tritanopia (Blue-blind)
#0C1C1B — rgb(12, 28, 27)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 84%, 10%);
text
color: hsl(251, 84%, 10%);
border
border: 2px solid hsl(251, 84%, 10%);
gradient light
background: linear-gradient(to right, hsl(251, 84%, 30%), hsl(251, 84%, 10%));
gradient dark
background: linear-gradient(to right, hsl(251, 84%, 10%), hsl(251, 84%, 0%))
hex
background-color: #0C042F;
tailwind
bg-[hsl(251,84%,10%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 84%, 10%, 0.4);
css variable
--color-primary: hsl(251, 84%, 10%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 84%, 10%)?
HEX: #0C042F | RGB: rgb(12, 4, 47) | CMYK: 74%, 91%, 0%, 82% | HSV: 251°, 91%, 18%. Copy any format from the conversion table above.
What colors go well with #0C042F?
The complementary color is HSL(71, 84%, 10%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 84%, 10%) in CSS?
As HSL: color: hsl(251, 84%, 10%); — As HEX: color: #0C042F; — As RGB: color: rgb(12, 4, 47); — Tailwind CSS: bg-[hsl(251,84%,10%)] — CSS variable: --color-primary: hsl(251, 84%, 10%);