HSL(257, 12%, 20%)
Grayish Indigo — Indigo color
Adjust Color
Color Information
Color Name
Grayish Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(257,12%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 12%, 20%) | color: hsl(257, 12%, 20%) | |
| HEX | #302D39 | color: #302D39 | |
| RGB | rgb(48, 45, 57) | color: rgb(48, 45, 57) | |
| CMYK | cmyk(16%, 21%, 0%, 78%) | — | |
| HSV | hsv(255, 21%, 22%) | — | |
| HWB | hwb(255 17% 78%) | color: hwb(255 17% 78%) | |
| OKLCH | oklch(0.3053 0.0217 296.55) | color: oklch(0.3053 0.0217 296.55) | |
| Lab | lab(19.23 4.32 -7.15) | color: lab(19.23 4.32 -7.15) | |
| LCH | lch(19.23 8.35 301.14) | color: lch(19.23 8.35 301.14) |
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)
#2F2F36 — rgb(47, 47, 54)
Deuteranopia (Green-blind)
#2F2F35 — rgb(47, 47, 53)
Tritanopia (Blue-blind)
#303433 — rgb(48, 52, 51)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 12%, 20%);
text
color: hsl(257, 12%, 20%);
border
border: 2px solid hsl(257, 12%, 20%);
gradient light
background: linear-gradient(to right, hsl(257, 12%, 40%), hsl(257, 12%, 20%));
gradient dark
background: linear-gradient(to right, hsl(257, 12%, 20%), hsl(257, 12%, 0%))
hex
background-color: #302D39;
tailwind
bg-[hsl(257,12%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 12%, 20%, 0.4);
css variable
--color-primary: hsl(257, 12%, 20%);
Related Colors
Use Cases for Grayish Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 12%, 20%)?
HEX: #302D39 | RGB: rgb(48, 45, 57) | CMYK: 16%, 21%, 0%, 78% | HSV: 255°, 21%, 22%. Copy any format from the conversion table above.
What colors go well with #302D39?
The complementary color is HSL(77, 12%, 20%). For a triadic harmony, use hues 257°, 17°, and 137°. For analogous combinations, try hues 227° and 287°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(257, 12%, 20%) in CSS?
As HSL: color: hsl(257, 12%, 20%); — As HEX: color: #302D39; — As RGB: color: rgb(48, 45, 57); — Tailwind CSS: bg-[hsl(257,12%,20%)] — CSS variable: --color-primary: hsl(257, 12%, 20%);