HSL(245, 43%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,43%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 43%, 40%) | color: hsl(245, 43%, 40%) | |
| HEX | #413A92 | color: #413A92 | |
| RGB | rgb(65, 58, 146) | color: rgb(65, 58, 146) | |
| CMYK | cmyk(55%, 60%, 0%, 43%) | — | |
| HSV | hsv(245, 60%, 57%) | — | |
| HWB | hwb(245 23% 43%) | color: hwb(245 23% 43%) | |
| OKLCH | oklch(0.4081 0.14 281.81) | color: oklch(0.4081 0.14 281.81) | |
| Lab | lab(29.97 28.72 -47.8) | color: lab(29.97 28.72 -47.8) | |
| LCH | lch(29.97 55.76 301) | color: lch(29.97 55.76 301) |
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)
#3E3E7D — rgb(62, 62, 125)
Deuteranopia (Green-blind)
#3E3F78 — rgb(62, 63, 120)
Tritanopia (Blue-blind)
#416C68 — rgb(65, 108, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 43%, 40%);
text
color: hsl(245, 43%, 40%);
border
border: 2px solid hsl(245, 43%, 40%);
gradient light
background: linear-gradient(to right, hsl(245, 43%, 60%), hsl(245, 43%, 40%));
gradient dark
background: linear-gradient(to right, hsl(245, 43%, 40%), hsl(245, 43%, 20%))
hex
background-color: #413A92;
tailwind
bg-[hsl(245,43%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 43%, 40%, 0.4);
css variable
--color-primary: hsl(245, 43%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 43%, 40%)?
HEX: #413A92 | RGB: rgb(65, 58, 146) | CMYK: 55%, 60%, 0%, 43% | HSV: 245°, 60%, 57%. Copy any format from the conversion table above.
What colors go well with #413A92?
The complementary color is HSL(65, 43%, 40%). For a triadic harmony, use hues 245°, 5°, and 125°. For analogous combinations, try hues 215° and 275°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(245, 43%, 40%) in CSS?
As HSL: color: hsl(245, 43%, 40%); — As HEX: color: #413A92; — As RGB: color: rgb(65, 58, 146); — Tailwind CSS: bg-[hsl(245,43%,40%)] — CSS variable: --color-primary: hsl(245, 43%, 40%);