HSL(251, 94%, 12%)
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,94%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 94%, 12%) | color: hsl(251, 94%, 12%) | |
| HEX | #0C023B | color: #0C023B | |
| RGB | rgb(12, 2, 59) | color: rgb(12, 2, 59) | |
| CMYK | cmyk(80%, 97%, 0%, 77%) | — | |
| HSV | hsv(251, 97%, 23%) | — | |
| HWB | hwb(251 1% 77%) | color: hwb(251 1% 77%) | |
| OKLCH | oklch(0.1757 0.1013 278.34) | color: oklch(0.1757 0.1013 278.34) | |
| Lab | lab(3.95 22.18 -33.02) | color: lab(3.95 22.18 -33.02) | |
| LCH | lch(3.95 39.78 303.89) | color: lch(3.95 39.78 303.89) |
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)
#08082D — rgb(8, 8, 45)
Deuteranopia (Green-blind)
#08092A — rgb(8, 9, 42)
Tritanopia (Blue-blind)
#0C2220 — rgb(12, 34, 32)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 94%, 12%);
text
color: hsl(251, 94%, 12%);
border
border: 2px solid hsl(251, 94%, 12%);
gradient light
background: linear-gradient(to right, hsl(251, 94%, 32%), hsl(251, 94%, 12%));
gradient dark
background: linear-gradient(to right, hsl(251, 94%, 12%), hsl(251, 94%, 0%))
hex
background-color: #0C023B;
tailwind
bg-[hsl(251,94%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 94%, 12%, 0.4);
css variable
--color-primary: hsl(251, 94%, 12%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 94%, 12%)?
HEX: #0C023B | RGB: rgb(12, 2, 59) | CMYK: 80%, 97%, 0%, 77% | HSV: 251°, 97%, 23%. Copy any format from the conversion table above.
What colors go well with #0C023B?
The complementary color is HSL(71, 94%, 12%). 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, 94%, 12%) in CSS?
As HSL: color: hsl(251, 94%, 12%); — As HEX: color: #0C023B; — As RGB: color: rgb(12, 2, 59); — Tailwind CSS: bg-[hsl(251,94%,12%)] — CSS variable: --color-primary: hsl(251, 94%, 12%);