HSL(31, 40%, 1%)
Very Dark Orange — Orange color
Adjust Color
Color Information
Color Name
Very Dark Orange
Color Family
Orange
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(31,40%,1%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(31, 40%, 1%) | color: hsl(31, 40%, 1%) | |
| HEX | #040302 | color: #040302 | |
| RGB | rgb(4, 3, 2) | color: rgb(4, 3, 2) | |
| CMYK | cmyk(0%, 25%, 50%, 98%) | — | |
| HSV | hsv(30, 50%, 2%) | — | |
| HWB | hwb(30 1% 98%) | color: hwb(30 1% 98%) | |
| OKLCH | oklch(0.0986 0.0063 72.53) | color: oklch(0.0986 0.0063 72.53) | |
| Lab | lab(0.86 0.12 0.47) | color: lab(0.86 0.12 0.47) | |
| LCH | lch(0.86 0.49 75.68) | color: lch(0.86 0.49 75.68) |
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)
#040402 — rgb(4, 4, 2)
Deuteranopia (Green-blind)
#040402 — rgb(4, 4, 2)
Tritanopia (Blue-blind)
#040202 — rgb(4, 2, 2)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(31, 40%, 1%);
text
color: hsl(31, 40%, 1%);
border
border: 2px solid hsl(31, 40%, 1%);
gradient light
background: linear-gradient(to right, hsl(31, 40%, 21%), hsl(31, 40%, 1%));
gradient dark
background: linear-gradient(to right, hsl(31, 40%, 1%), hsl(31, 40%, 0%))
hex
background-color: #040302;
tailwind
bg-[hsl(31,40%,1%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(31, 40%, 1%, 0.4);
css variable
--color-primary: hsl(31, 40%, 1%);
Related Colors
Use Cases for Very Dark Orange
Frequently Asked Questions
What are all the color codes for HSL(31, 40%, 1%)?
HEX: #040302 | RGB: rgb(4, 3, 2) | CMYK: 0%, 25%, 50%, 98% | HSV: 30°, 50%, 2%. Copy any format from the conversion table above.
What colors go well with #040302?
The complementary color is HSL(211, 40%, 1%). For a triadic harmony, use hues 31°, 151°, and 271°. For analogous combinations, try hues 1° and 61°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(31, 40%, 1%) in CSS?
As HSL: color: hsl(31, 40%, 1%); — As HEX: color: #040302; — As RGB: color: rgb(4, 3, 2); — Tailwind CSS: bg-[hsl(31,40%,1%)] — CSS variable: --color-primary: hsl(31, 40%, 1%);