HSL(201, 24%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(201,24%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(201, 24%, 21%) | color: hsl(201, 24%, 21%) | |
| HEX | #293942 | color: #293942 | |
| RGB | rgb(41, 57, 66) | color: rgb(41, 57, 66) | |
| CMYK | cmyk(38%, 14%, 0%, 74%) | — | |
| HSV | hsv(202, 38%, 26%) | — | |
| HWB | hwb(202 16% 74%) | color: hwb(202 16% 74%) | |
| OKLCH | oklch(0.3344 0.0263 233.21) | color: oklch(0.3344 0.0263 233.21) | |
| Lab | lab(22.97 -3.86 -7.67) | color: lab(22.97 -3.86 -7.67) | |
| LCH | lch(22.97 8.59 243.29) | color: lch(22.97 8.59 243.29) |
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)
#303040 — rgb(48, 48, 64)
Deuteranopia (Green-blind)
#2F2E3F — rgb(47, 46, 63)
Tritanopia (Blue-blind)
#2A3E3E — rgb(42, 62, 62)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(201, 24%, 21%);
text
color: hsl(201, 24%, 21%);
border
border: 2px solid hsl(201, 24%, 21%);
gradient light
background: linear-gradient(to right, hsl(201, 24%, 41%), hsl(201, 24%, 21%));
gradient dark
background: linear-gradient(to right, hsl(201, 24%, 21%), hsl(201, 24%, 1%))
hex
background-color: #293942;
tailwind
bg-[hsl(201,24%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(201, 24%, 21%, 0.4);
css variable
--color-primary: hsl(201, 24%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(201, 24%, 21%)?
HEX: #293942 | RGB: rgb(41, 57, 66) | CMYK: 38%, 14%, 0%, 74% | HSV: 202°, 38%, 26%. Copy any format from the conversion table above.
What colors go well with #293942?
The complementary color is HSL(21, 24%, 21%). For a triadic harmony, use hues 201°, 321°, and 81°. For analogous combinations, try hues 171° and 231°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(201, 24%, 21%) in CSS?
As HSL: color: hsl(201, 24%, 21%); — As HEX: color: #293942; — As RGB: color: rgb(41, 57, 66); — Tailwind CSS: bg-[hsl(201,24%,21%)] — CSS variable: --color-primary: hsl(201, 24%, 21%);