HSL(242, 72%, 49%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,72%,49%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 72%, 49%) | color: hsl(242, 72%, 49%) | |
| HEX | #2923D7 | color: #2923D7 | |
| RGB | rgb(41, 35, 215) | color: rgb(41, 35, 215) | |
| CMYK | cmyk(81%, 84%, 0%, 16%) | — | |
| HSV | hsv(242, 84%, 84%) | — | |
| HWB | hwb(242 13% 16%) | color: hwb(242 13% 16%) | |
| OKLCH | oklch(0.4305 0.2533 270.02) | color: oklch(0.4305 0.2533 270.02) | |
| Lab | lab(30.83 60.81 -87.51) | color: lab(30.83 60.81 -87.51) | |
| LCH | lch(30.83 106.56 304.8) | color: lch(30.83 106.56 304.8) |
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)
#2626AB — rgb(38, 38, 171)
Deuteranopia (Green-blind)
#2727A1 — rgb(39, 39, 161)
Tritanopia (Blue-blind)
#298982 — rgb(41, 137, 130)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 72%, 49%);
text
color: hsl(242, 72%, 49%);
border
border: 2px solid hsl(242, 72%, 49%);
gradient light
background: linear-gradient(to right, hsl(242, 72%, 69%), hsl(242, 72%, 49%));
gradient dark
background: linear-gradient(to right, hsl(242, 72%, 49%), hsl(242, 72%, 29%))
hex
background-color: #2923D7;
tailwind
bg-[hsl(242,72%,49%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 72%, 49%, 0.4);
css variable
--color-primary: hsl(242, 72%, 49%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 72%, 49%)?
HEX: #2923D7 | RGB: rgb(41, 35, 215) | CMYK: 81%, 84%, 0%, 16% | HSV: 242°, 84%, 84%. Copy any format from the conversion table above.
What colors go well with #2923D7?
The complementary color is HSL(62, 72%, 49%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 72%, 49%) in CSS?
As HSL: color: hsl(242, 72%, 49%); — As HEX: color: #2923D7; — As RGB: color: rgb(41, 35, 215); — Tailwind CSS: bg-[hsl(242,72%,49%)] — CSS variable: --color-primary: hsl(242, 72%, 49%);