HSL(229, 22%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(229,22%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(229, 22%, 21%) | color: hsl(229, 22%, 21%) | |
| HEX | #2A2E41 | color: #2A2E41 | |
| RGB | rgb(42, 46, 65) | color: rgb(42, 46, 65) | |
| CMYK | cmyk(35%, 29%, 0%, 75%) | — | |
| HSV | hsv(230, 35%, 25%) | — | |
| HWB | hwb(230 16% 75%) | color: hwb(230 16% 75%) | |
| OKLCH | oklch(0.306 0.0348 274.97) | color: oklch(0.306 0.0348 274.97) | |
| Lab | lab(19.34 3.65 -12.52) | color: lab(19.34 3.65 -12.52) | |
| LCH | lch(19.34 13.04 286.25) | color: lch(19.34 13.04 286.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)
#2C2C3C — rgb(44, 44, 60)
Deuteranopia (Green-blind)
#2C2B3B — rgb(44, 43, 59)
Tritanopia (Blue-blind)
#2A3938 — rgb(42, 57, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(229, 22%, 21%);
text
color: hsl(229, 22%, 21%);
border
border: 2px solid hsl(229, 22%, 21%);
gradient light
background: linear-gradient(to right, hsl(229, 22%, 41%), hsl(229, 22%, 21%));
gradient dark
background: linear-gradient(to right, hsl(229, 22%, 21%), hsl(229, 22%, 1%))
hex
background-color: #2A2E41;
tailwind
bg-[hsl(229,22%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(229, 22%, 21%, 0.4);
css variable
--color-primary: hsl(229, 22%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(229, 22%, 21%)?
HEX: #2A2E41 | RGB: rgb(42, 46, 65) | CMYK: 35%, 29%, 0%, 75% | HSV: 230°, 35%, 25%. Copy any format from the conversion table above.
What colors go well with #2A2E41?
The complementary color is HSL(49, 22%, 21%). For a triadic harmony, use hues 229°, 349°, and 109°. For analogous combinations, try hues 199° and 259°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(229, 22%, 21%) in CSS?
As HSL: color: hsl(229, 22%, 21%); — As HEX: color: #2A2E41; — As RGB: color: rgb(42, 46, 65); — Tailwind CSS: bg-[hsl(229,22%,21%)] — CSS variable: --color-primary: hsl(229, 22%, 21%);