HSL(248, 30%, 22%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,30%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 30%, 22%) | color: hsl(248, 30%, 22%) | |
| HEX | #2C2749 | color: #2C2749 | |
| RGB | rgb(44, 39, 73) | color: rgb(44, 39, 73) | |
| CMYK | cmyk(40%, 47%, 0%, 71%) | — | |
| HSV | hsv(249, 47%, 29%) | — | |
| HWB | hwb(249 15% 71%) | color: hwb(249 15% 71%) | |
| OKLCH | oklch(0.2958 0.0607 288.88) | color: oklch(0.2958 0.0607 288.88) | |
| Lab | lab(17.77 11.86 -20.43) | color: lab(17.77 11.86 -20.43) | |
| LCH | lch(17.77 23.62 300.14) | color: lch(17.77 23.62 300.14) |
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)
#2A2A41 — rgb(42, 42, 65)
Deuteranopia (Green-blind)
#2A2B3F — rgb(42, 43, 63)
Tritanopia (Blue-blind)
#2C3A39 — rgb(44, 58, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 30%, 22%);
text
color: hsl(248, 30%, 22%);
border
border: 2px solid hsl(248, 30%, 22%);
gradient light
background: linear-gradient(to right, hsl(248, 30%, 42%), hsl(248, 30%, 22%));
gradient dark
background: linear-gradient(to right, hsl(248, 30%, 22%), hsl(248, 30%, 2%))
hex
background-color: #2C2749;
tailwind
bg-[hsl(248,30%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 30%, 22%, 0.4);
css variable
--color-primary: hsl(248, 30%, 22%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 30%, 22%)?
HEX: #2C2749 | RGB: rgb(44, 39, 73) | CMYK: 40%, 47%, 0%, 71% | HSV: 249°, 47%, 29%. Copy any format from the conversion table above.
What colors go well with #2C2749?
The complementary color is HSL(68, 30%, 22%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 30%, 22%) in CSS?
As HSL: color: hsl(248, 30%, 22%); — As HEX: color: #2C2749; — As RGB: color: rgb(44, 39, 73); — Tailwind CSS: bg-[hsl(248,30%,22%)] — CSS variable: --color-primary: hsl(248, 30%, 22%);