HSL(241, 30%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(241,30%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(241, 30%, 20%) | color: hsl(241, 30%, 20%) | |
| HEX | #242442 | color: #242442 | |
| RGB | rgb(36, 36, 66) | color: rgb(36, 36, 66) | |
| CMYK | cmyk(45%, 45%, 0%, 74%) | — | |
| HSV | hsv(240, 45%, 26%) | — | |
| HWB | hwb(240 14% 74%) | color: hwb(240 14% 74%) | |
| OKLCH | oklch(0.2763 0.0548 282.21) | color: oklch(0.2763 0.0548 282.21) | |
| Lab | lab(15.64 9.09 -19.02) | color: lab(15.64 9.09 -19.02) | |
| LCH | lch(15.64 21.08 295.54) | color: lch(15.64 21.08 295.54) |
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)
#24243B — rgb(36, 36, 59)
Deuteranopia (Green-blind)
#242439 — rgb(36, 36, 57)
Tritanopia (Blue-blind)
#243534 — rgb(36, 53, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(241, 30%, 20%);
text
color: hsl(241, 30%, 20%);
border
border: 2px solid hsl(241, 30%, 20%);
gradient light
background: linear-gradient(to right, hsl(241, 30%, 40%), hsl(241, 30%, 20%));
gradient dark
background: linear-gradient(to right, hsl(241, 30%, 20%), hsl(241, 30%, 0%))
hex
background-color: #242442;
tailwind
bg-[hsl(241,30%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(241, 30%, 20%, 0.4);
css variable
--color-primary: hsl(241, 30%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(241, 30%, 20%)?
HEX: #242442 | RGB: rgb(36, 36, 66) | CMYK: 45%, 45%, 0%, 74% | HSV: 240°, 45%, 26%. Copy any format from the conversion table above.
What colors go well with #242442?
The complementary color is HSL(61, 30%, 20%). For a triadic harmony, use hues 241°, 1°, and 121°. For analogous combinations, try hues 211° and 271°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(241, 30%, 20%) in CSS?
As HSL: color: hsl(241, 30%, 20%); — As HEX: color: #242442; — As RGB: color: rgb(36, 36, 66); — Tailwind CSS: bg-[hsl(241,30%,20%)] — CSS variable: --color-primary: hsl(241, 30%, 20%);