HSL(217, 33%, 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(217,33%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(217, 33%, 12%) | color: hsl(217, 33%, 12%) | |
| HEX | #151C29 | color: #151C29 | |
| RGB | rgb(21, 28, 41) | color: rgb(21, 28, 41) | |
| CMYK | cmyk(49%, 32%, 0%, 84%) | — | |
| HSV | hsv(219, 49%, 16%) | — | |
| HWB | hwb(219 8% 84%) | color: hwb(219 8% 84%) | |
| OKLCH | oklch(0.226 0.0275 262.47) | color: oklch(0.226 0.0275 262.47) | |
| Lab | lab(10.18 1.08 -9.82) | color: lab(10.18 1.08 -9.82) | |
| LCH | lch(10.18 9.88 276.28) | color: lch(10.18 9.88 276.28) |
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)
#181826 — rgb(24, 24, 38)
Deuteranopia (Green-blind)
#181725 — rgb(24, 23, 37)
Tritanopia (Blue-blind)
#152323 — rgb(21, 35, 35)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(217, 33%, 12%);
text
color: hsl(217, 33%, 12%);
border
border: 2px solid hsl(217, 33%, 12%);
gradient light
background: linear-gradient(to right, hsl(217, 33%, 32%), hsl(217, 33%, 12%));
gradient dark
background: linear-gradient(to right, hsl(217, 33%, 12%), hsl(217, 33%, 0%))
hex
background-color: #151C29;
tailwind
bg-[hsl(217,33%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(217, 33%, 12%, 0.4);
css variable
--color-primary: hsl(217, 33%, 12%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(217, 33%, 12%)?
HEX: #151C29 | RGB: rgb(21, 28, 41) | CMYK: 49%, 32%, 0%, 84% | HSV: 219°, 49%, 16%. Copy any format from the conversion table above.
What colors go well with #151C29?
The complementary color is HSL(37, 33%, 12%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(217, 33%, 12%) in CSS?
As HSL: color: hsl(217, 33%, 12%); — As HEX: color: #151C29; — As RGB: color: rgb(21, 28, 41); — Tailwind CSS: bg-[hsl(217,33%,12%)] — CSS variable: --color-primary: hsl(217, 33%, 12%);