HSL(240, 17%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(240,17%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(240, 17%, 54%) | color: hsl(240, 17%, 54%) | |
| HEX | #76769E | color: #76769E | |
| RGB | rgb(118, 118, 158) | color: rgb(118, 118, 158) | |
| CMYK | cmyk(25%, 25%, 0%, 38%) | — | |
| HSV | hsv(240, 25%, 62%) | — | |
| HWB | hwb(240 47% 38%) | color: hwb(240 47% 38%) | |
| OKLCH | oklch(0.5811 0.061 284.34) | color: oklch(0.5811 0.061 284.34) | |
| Lab | lab(51.01 9.15 -21.47) | color: lab(51.01 9.15 -21.47) | |
| LCH | lch(51.01 23.34 293.08) | color: lch(51.01 23.34 293.08) |
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)
#767694 — rgb(118, 118, 148)
Deuteranopia (Green-blind)
#767692 — rgb(118, 118, 146)
Tritanopia (Blue-blind)
#768D8B — rgb(118, 141, 139)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(240, 17%, 54%);
text
color: hsl(240, 17%, 54%);
border
border: 2px solid hsl(240, 17%, 54%);
gradient light
background: linear-gradient(to right, hsl(240, 17%, 74%), hsl(240, 17%, 54%));
gradient dark
background: linear-gradient(to right, hsl(240, 17%, 54%), hsl(240, 17%, 34%))
hex
background-color: #76769E;
tailwind
bg-[hsl(240,17%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(240, 17%, 54%, 0.4);
css variable
--color-primary: hsl(240, 17%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(240, 17%, 54%)?
HEX: #76769E | RGB: rgb(118, 118, 158) | CMYK: 25%, 25%, 0%, 38% | HSV: 240°, 25%, 62%. Copy any format from the conversion table above.
What colors go well with #76769E?
The complementary color is HSL(60, 17%, 54%). For a triadic harmony, use hues 240°, 0°, and 120°. For analogous combinations, try hues 210° and 270°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(240, 17%, 54%) in CSS?
As HSL: color: hsl(240, 17%, 54%); — As HEX: color: #76769E; — As RGB: color: rgb(118, 118, 158); — Tailwind CSS: bg-[hsl(240,17%,54%)] — CSS variable: --color-primary: hsl(240, 17%, 54%);