HSL(251, 76%, 9%)
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,76%,9%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 76%, 9%) | color: hsl(251, 76%, 9%) | |
| HEX | #0C0628 | color: #0C0628 | |
| RGB | rgb(12, 6, 40) | color: rgb(12, 6, 40) | |
| CMYK | cmyk(70%, 85%, 0%, 84%) | — | |
| HSV | hsv(251, 85%, 16%) | — | |
| HWB | hwb(251 2% 84%) | color: hwb(251 2% 84%) | |
| OKLCH | oklch(0.1602 0.0668 284.72) | color: oklch(0.1602 0.0668 284.72) | |
| Lab | lab(3.27 10.49 -19.95) | color: lab(3.27 10.49 -19.95) | |
| LCH | lch(3.27 22.54 297.74) | color: lch(3.27 22.54 297.74) |
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)
#090920 — rgb(9, 9, 32)
Deuteranopia (Green-blind)
#0A0A1E — rgb(10, 10, 30)
Tritanopia (Blue-blind)
#0C1918 — rgb(12, 25, 24)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 76%, 9%);
text
color: hsl(251, 76%, 9%);
border
border: 2px solid hsl(251, 76%, 9%);
gradient light
background: linear-gradient(to right, hsl(251, 76%, 29%), hsl(251, 76%, 9%));
gradient dark
background: linear-gradient(to right, hsl(251, 76%, 9%), hsl(251, 76%, 0%))
hex
background-color: #0C0628;
tailwind
bg-[hsl(251,76%,9%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 76%, 9%, 0.4);
css variable
--color-primary: hsl(251, 76%, 9%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 76%, 9%)?
HEX: #0C0628 | RGB: rgb(12, 6, 40) | CMYK: 70%, 85%, 0%, 84% | HSV: 251°, 85%, 16%. Copy any format from the conversion table above.
What colors go well with #0C0628?
The complementary color is HSL(71, 76%, 9%). 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, 76%, 9%) in CSS?
As HSL: color: hsl(251, 76%, 9%); — As HEX: color: #0C0628; — As RGB: color: rgb(12, 6, 40); — Tailwind CSS: bg-[hsl(251,76%,9%)] — CSS variable: --color-primary: hsl(251, 76%, 9%);