HSL(245, 28%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,28%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 28%, 31%) | color: hsl(245, 28%, 31%) | |
| HEX | #3D3965 | color: #3D3965 | |
| RGB | rgb(61, 57, 101) | color: rgb(61, 57, 101) | |
| CMYK | cmyk(40%, 44%, 0%, 60%) | — | |
| HSV | hsv(245, 44%, 40%) | — | |
| HWB | hwb(245 22% 60%) | color: hwb(245 22% 60%) | |
| OKLCH | oklch(0.3702 0.0743 286.33) | color: oklch(0.3702 0.0743 286.33) | |
| Lab | lab(26.33 13.68 -25.37) | color: lab(26.33 13.68 -25.37) | |
| LCH | lch(26.33 28.82 298.33) | color: lch(26.33 28.82 298.33) |
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)
#3B3B5A — rgb(59, 59, 90)
Deuteranopia (Green-blind)
#3C3C58 — rgb(60, 60, 88)
Tritanopia (Blue-blind)
#3D5250 — rgb(61, 82, 80)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 28%, 31%);
text
color: hsl(245, 28%, 31%);
border
border: 2px solid hsl(245, 28%, 31%);
gradient light
background: linear-gradient(to right, hsl(245, 28%, 51%), hsl(245, 28%, 31%));
gradient dark
background: linear-gradient(to right, hsl(245, 28%, 31%), hsl(245, 28%, 11%))
hex
background-color: #3D3965;
tailwind
bg-[hsl(245,28%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 28%, 31%, 0.4);
css variable
--color-primary: hsl(245, 28%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 28%, 31%)?
HEX: #3D3965 | RGB: rgb(61, 57, 101) | CMYK: 40%, 44%, 0%, 60% | HSV: 245°, 44%, 40%. Copy any format from the conversion table above.
What colors go well with #3D3965?
The complementary color is HSL(65, 28%, 31%). 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, 28%, 31%) in CSS?
As HSL: color: hsl(245, 28%, 31%); — As HEX: color: #3D3965; — As RGB: color: rgb(61, 57, 101); — Tailwind CSS: bg-[hsl(245,28%,31%)] — CSS variable: --color-primary: hsl(245, 28%, 31%);