HSL(237, 12%, 20%)
Grayish Blue — Blue color
Adjust Color
Color Information
Color Name
Grayish Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(237,12%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 12%, 20%) | color: hsl(237, 12%, 20%) | |
| HEX | #2D2D39 | color: #2D2D39 | |
| RGB | rgb(45, 45, 57) | color: rgb(45, 45, 57) | |
| CMYK | cmyk(21%, 21%, 0%, 78%) | — | |
| HSV | hsv(240, 21%, 22%) | — | |
| HWB | hwb(240 17% 78%) | color: hwb(240 17% 78%) | |
| OKLCH | oklch(0.3023 0.0215 285.04) | color: oklch(0.3023 0.0215 285.04) | |
| Lab | lab(18.93 3.11 -7.63) | color: lab(18.93 3.11 -7.63) | |
| LCH | lch(18.93 8.24 292.18) | color: lch(18.93 8.24 292.18) |
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)
#2D2D36 — rgb(45, 45, 54)
Deuteranopia (Green-blind)
#2D2D35 — rgb(45, 45, 53)
Tritanopia (Blue-blind)
#2D3433 — rgb(45, 52, 51)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 12%, 20%);
text
color: hsl(237, 12%, 20%);
border
border: 2px solid hsl(237, 12%, 20%);
gradient light
background: linear-gradient(to right, hsl(237, 12%, 40%), hsl(237, 12%, 20%));
gradient dark
background: linear-gradient(to right, hsl(237, 12%, 20%), hsl(237, 12%, 0%))
hex
background-color: #2D2D39;
tailwind
bg-[hsl(237,12%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 12%, 20%, 0.4);
css variable
--color-primary: hsl(237, 12%, 20%);
Related Colors
Use Cases for Grayish Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 12%, 20%)?
HEX: #2D2D39 | RGB: rgb(45, 45, 57) | CMYK: 21%, 21%, 0%, 78% | HSV: 240°, 21%, 22%. Copy any format from the conversion table above.
What colors go well with #2D2D39?
The complementary color is HSL(57, 12%, 20%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(237, 12%, 20%) in CSS?
As HSL: color: hsl(237, 12%, 20%); — As HEX: color: #2D2D39; — As RGB: color: rgb(45, 45, 57); — Tailwind CSS: bg-[hsl(237,12%,20%)] — CSS variable: --color-primary: hsl(237, 12%, 20%);