HSL(249, 35%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(249,35%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(249, 35%, 42%) | color: hsl(249, 35%, 42%) | |
| HEX | #514691 | color: #514691 | |
| RGB | rgb(81, 70, 145) | color: rgb(81, 70, 145) | |
| CMYK | cmyk(44%, 52%, 0%, 43%) | — | |
| HSV | hsv(249, 52%, 57%) | — | |
| HWB | hwb(249 27% 43%) | color: hwb(249 27% 43%) | |
| OKLCH | oklch(0.4438 0.1191 287.24) | color: oklch(0.4438 0.1191 287.24) | |
| Lab | lab(34.34 24.38 -40.08) | color: lab(34.34 24.38 -40.08) | |
| LCH | lch(34.34 46.91 301.31) | color: lch(34.34 46.91 301.31) |
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)
#4C4C7F — rgb(76, 76, 127)
Deuteranopia (Green-blind)
#4D4E7B — rgb(77, 78, 123)
Tritanopia (Blue-blind)
#50716D — rgb(80, 113, 109)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(249, 35%, 42%);
text
color: hsl(249, 35%, 42%);
border
border: 2px solid hsl(249, 35%, 42%);
gradient light
background: linear-gradient(to right, hsl(249, 35%, 62%), hsl(249, 35%, 42%));
gradient dark
background: linear-gradient(to right, hsl(249, 35%, 42%), hsl(249, 35%, 22%))
hex
background-color: #514691;
tailwind
bg-[hsl(249,35%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(249, 35%, 42%, 0.4);
css variable
--color-primary: hsl(249, 35%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(249, 35%, 42%)?
HEX: #514691 | RGB: rgb(81, 70, 145) | CMYK: 44%, 52%, 0%, 43% | HSV: 249°, 52%, 57%. Copy any format from the conversion table above.
What colors go well with #514691?
The complementary color is HSL(69, 35%, 42%). 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, 35%, 42%) in CSS?
As HSL: color: hsl(249, 35%, 42%); — As HEX: color: #514691; — As RGB: color: rgb(81, 70, 145); — Tailwind CSS: bg-[hsl(249,35%,42%)] — CSS variable: --color-primary: hsl(249, 35%, 42%);