HSL(211, 30%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(211,30%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(211, 30%, 20%) | color: hsl(211, 30%, 20%) | |
| HEX | #243242 | color: #243242 | |
| RGB | rgb(36, 50, 66) | color: rgb(36, 50, 66) | |
| CMYK | cmyk(45%, 24%, 0%, 74%) | — | |
| HSV | hsv(212, 45%, 26%) | — | |
| HWB | hwb(212 14% 74%) | color: hwb(212 14% 74%) | |
| OKLCH | oklch(0.3119 0.0345 252.23) | color: oklch(0.3119 0.0345 252.23) | |
| Lab | lab(20.24 -0.85 -11.86) | color: lab(20.24 -0.85 -11.86) | |
| LCH | lch(20.24 11.89 265.9) | color: lch(20.24 11.89 265.9) |
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)
#2A2A3E — rgb(42, 42, 62)
Deuteranopia (Green-blind)
#29283D — rgb(41, 40, 61)
Tritanopia (Blue-blind)
#253B3A — rgb(37, 59, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(211, 30%, 20%);
text
color: hsl(211, 30%, 20%);
border
border: 2px solid hsl(211, 30%, 20%);
gradient light
background: linear-gradient(to right, hsl(211, 30%, 40%), hsl(211, 30%, 20%));
gradient dark
background: linear-gradient(to right, hsl(211, 30%, 20%), hsl(211, 30%, 0%))
hex
background-color: #243242;
tailwind
bg-[hsl(211,30%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(211, 30%, 20%, 0.4);
css variable
--color-primary: hsl(211, 30%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(211, 30%, 20%)?
HEX: #243242 | RGB: rgb(36, 50, 66) | CMYK: 45%, 24%, 0%, 74% | HSV: 212°, 45%, 26%. Copy any format from the conversion table above.
What colors go well with #243242?
The complementary color is HSL(31, 30%, 20%). For a triadic harmony, use hues 211°, 331°, and 91°. For analogous combinations, try hues 181° and 241°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(211, 30%, 20%) in CSS?
As HSL: color: hsl(211, 30%, 20%); — As HEX: color: #243242; — As RGB: color: rgb(36, 50, 66); — Tailwind CSS: bg-[hsl(211,30%,20%)] — CSS variable: --color-primary: hsl(211, 30%, 20%);