HSL(230, 7%, 27%)
Grayish Gray — Gray color
Adjust Color
Color Information
Color Name
Grayish Gray
Color Family
Gray
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(230,7%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(230, 7%, 27%) | color: hsl(230, 7%, 27%) | |
| HEX | #40424A | color: #40424A | |
| RGB | rgb(64, 66, 74) | color: rgb(64, 66, 74) | |
| CMYK | cmyk(14%, 11%, 0%, 71%) | — | |
| HSV | hsv(228, 14%, 29%) | — | |
| HWB | hwb(228 25% 71%) | color: hwb(228 25% 71%) | |
| OKLCH | oklch(0.3802 0.0138 274.56) | color: oklch(0.3802 0.0138 274.56) | |
| Lab | lab(28.06 1.08 -5.12) | color: lab(28.06 1.08 -5.12) | |
| LCH | lch(28.06 5.23 281.91) | color: lch(28.06 5.23 281.91) |
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)
#414148 — rgb(65, 65, 72)
Deuteranopia (Green-blind)
#414148 — rgb(65, 65, 72)
Tritanopia (Blue-blind)
#404746 — rgb(64, 71, 70)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(230, 7%, 27%);
text
color: hsl(230, 7%, 27%);
border
border: 2px solid hsl(230, 7%, 27%);
gradient light
background: linear-gradient(to right, hsl(230, 7%, 47%), hsl(230, 7%, 27%));
gradient dark
background: linear-gradient(to right, hsl(230, 7%, 27%), hsl(230, 7%, 7%))
hex
background-color: #40424A;
tailwind
bg-[hsl(230,7%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(230, 7%, 27%, 0.4);
css variable
--color-primary: hsl(230, 7%, 27%);
Related Colors
Use Cases for Grayish Gray
Frequently Asked Questions
What are all the color codes for HSL(230, 7%, 27%)?
HEX: #40424A | RGB: rgb(64, 66, 74) | CMYK: 14%, 11%, 0%, 71% | HSV: 228°, 14%, 29%. Copy any format from the conversion table above.
What colors go well with #40424A?
The complementary color is HSL(50, 7%, 27%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(230, 7%, 27%) in CSS?
As HSL: color: hsl(230, 7%, 27%); — As HEX: color: #40424A; — As RGB: color: rgb(64, 66, 74); — Tailwind CSS: bg-[hsl(230,7%,27%)] — CSS variable: --color-primary: hsl(230, 7%, 27%);