HSL(199, 22%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(199,22%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(199, 22%, 21%) | color: hsl(199, 22%, 21%) | |
| HEX | #2A3A41 | color: #2A3A41 | |
| RGB | rgb(42, 58, 65) | color: rgb(42, 58, 65) | |
| CMYK | cmyk(35%, 11%, 0%, 75%) | — | |
| HSV | hsv(198, 35%, 25%) | — | |
| HWB | hwb(198 16% 75%) | color: hwb(198 16% 75%) | |
| OKLCH | oklch(0.3374 0.0242 226.63) | color: oklch(0.3374 0.0242 226.63) | |
| Lab | lab(23.34 -4.46 -6.43) | color: lab(23.34 -4.46 -6.43) | |
| LCH | lch(23.34 7.83 235.25) | color: lch(23.34 7.83 235.25) |
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)
#31313F — rgb(49, 49, 63)
Deuteranopia (Green-blind)
#302F3F — rgb(48, 47, 63)
Tritanopia (Blue-blind)
#2B3E3E — rgb(43, 62, 62)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(199, 22%, 21%);
text
color: hsl(199, 22%, 21%);
border
border: 2px solid hsl(199, 22%, 21%);
gradient light
background: linear-gradient(to right, hsl(199, 22%, 41%), hsl(199, 22%, 21%));
gradient dark
background: linear-gradient(to right, hsl(199, 22%, 21%), hsl(199, 22%, 1%))
hex
background-color: #2A3A41;
tailwind
bg-[hsl(199,22%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(199, 22%, 21%, 0.4);
css variable
--color-primary: hsl(199, 22%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(199, 22%, 21%)?
HEX: #2A3A41 | RGB: rgb(42, 58, 65) | CMYK: 35%, 11%, 0%, 75% | HSV: 198°, 35%, 25%. Copy any format from the conversion table above.
What colors go well with #2A3A41?
The complementary color is HSL(19, 22%, 21%). For a triadic harmony, use hues 199°, 319°, and 79°. For analogous combinations, try hues 169° and 229°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(199, 22%, 21%) in CSS?
As HSL: color: hsl(199, 22%, 21%); — As HEX: color: #2A3A41; — As RGB: color: rgb(42, 58, 65); — Tailwind CSS: bg-[hsl(199,22%,21%)] — CSS variable: --color-primary: hsl(199, 22%, 21%);