HSL(249, 40%, 59%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(249,40%,59%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(249, 40%, 59%) | color: hsl(249, 40%, 59%) | |
| HEX | #796DC0 | color: #796DC0 | |
| RGB | rgb(121, 109, 192) | color: rgb(121, 109, 192) | |
| CMYK | cmyk(37%, 43%, 0%, 25%) | — | |
| HSV | hsv(249, 43%, 75%) | — | |
| HWB | hwb(249 43% 25%) | color: hwb(249 43% 25%) | |
| OKLCH | oklch(0.5826 0.1248 288.54) | color: oklch(0.5826 0.1248 288.54) | |
| Lab | lab(50.46 24.5 -42.03) | color: lab(50.46 24.5 -42.03) | |
| LCH | lch(50.46 48.65 300.24) | color: lch(50.46 48.65 300.24) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#7474AC — rgb(116, 116, 172)
Deuteranopia (Green-blind)
#7575A7 — rgb(117, 117, 167)
Tritanopia (Blue-blind)
#789C99 — rgb(120, 156, 153)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(249, 40%, 59%);
text
color: hsl(249, 40%, 59%);
border
border: 2px solid hsl(249, 40%, 59%);
gradient light
background: linear-gradient(to right, hsl(249, 40%, 79%), hsl(249, 40%, 59%));
gradient dark
background: linear-gradient(to right, hsl(249, 40%, 59%), hsl(249, 40%, 39%))
hex
background-color: #796DC0;
tailwind
bg-[hsl(249,40%,59%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(249, 40%, 59%, 0.4);
css variable
--color-primary: hsl(249, 40%, 59%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(249, 40%, 59%)?
HEX: #796DC0 | RGB: rgb(121, 109, 192) | CMYK: 37%, 43%, 0%, 25% | HSV: 249°, 43%, 75%. Copy any format from the conversion table above.
What colors go well with #796DC0?
The complementary color is HSL(69, 40%, 59%). For a triadic harmony, use hues 249°, 9°, and 129°. For analogous combinations, try hues 219° and 279°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(249, 40%, 59%) in CSS?
As HSL: color: hsl(249, 40%, 59%); — As HEX: color: #796DC0; — As RGB: color: rgb(121, 109, 192); — Tailwind CSS: bg-[hsl(249,40%,59%)] — CSS variable: --color-primary: hsl(249, 40%, 59%);