HSL(198, 74%, 5%)
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(198,74%,5%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(198, 74%, 5%) | color: hsl(198, 74%, 5%) | |
| HEX | #031116 | color: #031116 | |
| RGB | rgb(3, 17, 22) | color: rgb(3, 17, 22) | |
| CMYK | cmyk(86%, 23%, 0%, 91%) | — | |
| HSV | hsv(196, 86%, 9%) | — | |
| HWB | hwb(196 1% 91%) | color: hwb(196 1% 91%) | |
| OKLCH | oklch(0.1666 0.0241 221.12) | color: oklch(0.1666 0.0241 221.12) | |
| Lab | lab(4.32 -2.94 -4.44) | color: lab(4.32 -2.94 -4.44) | |
| LCH | lch(4.32 5.33 236.49) | color: lch(4.32 5.33 236.49) |
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)
#090915 — rgb(9, 9, 21)
Deuteranopia (Green-blind)
#080715 — rgb(8, 7, 21)
Tritanopia (Blue-blind)
#041414 — rgb(4, 20, 20)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(198, 74%, 5%);
text
color: hsl(198, 74%, 5%);
border
border: 2px solid hsl(198, 74%, 5%);
gradient light
background: linear-gradient(to right, hsl(198, 74%, 25%), hsl(198, 74%, 5%));
gradient dark
background: linear-gradient(to right, hsl(198, 74%, 5%), hsl(198, 74%, 0%))
hex
background-color: #031116;
tailwind
bg-[hsl(198,74%,5%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(198, 74%, 5%, 0.4);
css variable
--color-primary: hsl(198, 74%, 5%);
Related Colors
Use Cases for Very Dark Blue
Frequently Asked Questions
What are all the color codes for HSL(198, 74%, 5%)?
HEX: #031116 | RGB: rgb(3, 17, 22) | CMYK: 86%, 23%, 0%, 91% | HSV: 196°, 86%, 9%. Copy any format from the conversion table above.
What colors go well with #031116?
The complementary color is HSL(18, 74%, 5%). For a triadic harmony, use hues 198°, 318°, and 78°. For analogous combinations, try hues 168° and 228°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(198, 74%, 5%) in CSS?
As HSL: color: hsl(198, 74%, 5%); — As HEX: color: #031116; — As RGB: color: rgb(3, 17, 22); — Tailwind CSS: bg-[hsl(198,74%,5%)] — CSS variable: --color-primary: hsl(198, 74%, 5%);