HSL(207, 86%, 12%)
Very Dark Blue — Blue color
Adjust Color
Color Information
Color Name
Very Dark Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(207,86%,12%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(207, 86%, 12%) | color: hsl(207, 86%, 12%) | |
| HEX | #042139 | color: #042139 | |
| RGB | rgb(4, 33, 57) | color: rgb(4, 33, 57) | |
| CMYK | cmyk(93%, 42%, 0%, 78%) | — | |
| HSV | hsv(207, 93%, 22%) | — | |
| HWB | hwb(207 2% 78%) | color: hwb(207 2% 78%) | |
| OKLCH | oklch(0.2409 0.0574 247.43) | color: oklch(0.2409 0.0574 247.43) | |
| Lab | lab(12.02 -0.21 -18.58) | color: lab(12.02 -0.21 -18.58) | |
| LCH | lch(12.02 18.58 269.35) | color: lch(12.02 18.58 269.35) |
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)
#111133 — rgb(17, 17, 51)
Deuteranopia (Green-blind)
#0F0D32 — rgb(15, 13, 50)
Tritanopia (Blue-blind)
#052F2E — rgb(5, 47, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(207, 86%, 12%);
text
color: hsl(207, 86%, 12%);
border
border: 2px solid hsl(207, 86%, 12%);
gradient light
background: linear-gradient(to right, hsl(207, 86%, 32%), hsl(207, 86%, 12%));
gradient dark
background: linear-gradient(to right, hsl(207, 86%, 12%), hsl(207, 86%, 0%))
hex
background-color: #042139;
tailwind
bg-[hsl(207,86%,12%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(207, 86%, 12%, 0.4);
css variable
--color-primary: hsl(207, 86%, 12%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(207, 86%, 12%)?
HEX: #042139 | RGB: rgb(4, 33, 57) | CMYK: 93%, 42%, 0%, 78% | HSV: 207°, 93%, 22%. Copy any format from the conversion table above.
What colors go well with #042139?
The complementary color is HSL(27, 86%, 12%). For a triadic harmony, use hues 207°, 327°, and 87°. For analogous combinations, try hues 177° and 237°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(207, 86%, 12%) in CSS?
As HSL: color: hsl(207, 86%, 12%); — As HEX: color: #042139; — As RGB: color: rgb(4, 33, 57); — Tailwind CSS: bg-[hsl(207,86%,12%)] — CSS variable: --color-primary: hsl(207, 86%, 12%);