HSL(248, 31%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,31%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 31%, 31%) | color: hsl(248, 31%, 31%) | |
| HEX | #3D3768 | color: #3D3768 | |
| RGB | rgb(61, 55, 104) | color: rgb(61, 55, 104) | |
| CMYK | cmyk(41%, 47%, 0%, 59%) | — | |
| HSV | hsv(247, 47%, 41%) | — | |
| HWB | hwb(247 22% 59%) | color: hwb(247 22% 59%) | |
| OKLCH | oklch(0.3678 0.0825 287.23) | color: oklch(0.3678 0.0825 287.23) | |
| Lab | lab(25.93 15.98 -27.92) | color: lab(25.93 15.98 -27.92) | |
| LCH | lch(25.93 32.17 299.78) | color: lch(25.93 32.17 299.78) |
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)
#3A3A5C — rgb(58, 58, 92)
Deuteranopia (Green-blind)
#3B3B59 — rgb(59, 59, 89)
Tritanopia (Blue-blind)
#3D5351 — rgb(61, 83, 81)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 31%, 31%);
text
color: hsl(248, 31%, 31%);
border
border: 2px solid hsl(248, 31%, 31%);
gradient light
background: linear-gradient(to right, hsl(248, 31%, 51%), hsl(248, 31%, 31%));
gradient dark
background: linear-gradient(to right, hsl(248, 31%, 31%), hsl(248, 31%, 11%))
hex
background-color: #3D3768;
tailwind
bg-[hsl(248,31%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 31%, 31%, 0.4);
css variable
--color-primary: hsl(248, 31%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 31%, 31%)?
HEX: #3D3768 | RGB: rgb(61, 55, 104) | CMYK: 41%, 47%, 0%, 59% | HSV: 247°, 47%, 41%. Copy any format from the conversion table above.
What colors go well with #3D3768?
The complementary color is HSL(68, 31%, 31%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 31%, 31%) in CSS?
As HSL: color: hsl(248, 31%, 31%); — As HEX: color: #3D3768; — As RGB: color: rgb(61, 55, 104); — Tailwind CSS: bg-[hsl(248,31%,31%)] — CSS variable: --color-primary: hsl(248, 31%, 31%);