HSL(248, 48%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,48%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 48%, 37%) | color: hsl(248, 48%, 37%) | |
| HEX | #3D318C | color: #3D318C | |
| RGB | rgb(61, 49, 140) | color: rgb(61, 49, 140) | |
| CMYK | cmyk(56%, 65%, 0%, 45%) | — | |
| HSV | hsv(248, 65%, 55%) | — | |
| HWB | hwb(248 19% 45%) | color: hwb(248 19% 45%) | |
| OKLCH | oklch(0.3837 0.1446 283.21) | color: oklch(0.3837 0.1446 283.21) | |
| Lab | lab(26.97 31.66 -49) | color: lab(26.97 31.66 -49) | |
| LCH | lch(26.97 58.34 302.87) | color: lch(26.97 58.34 302.87) |
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)
#383876 — rgb(56, 56, 118)
Deuteranopia (Green-blind)
#393971 — rgb(57, 57, 113)
Tritanopia (Blue-blind)
#3C6561 — rgb(60, 101, 97)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 48%, 37%);
text
color: hsl(248, 48%, 37%);
border
border: 2px solid hsl(248, 48%, 37%);
gradient light
background: linear-gradient(to right, hsl(248, 48%, 57%), hsl(248, 48%, 37%));
gradient dark
background: linear-gradient(to right, hsl(248, 48%, 37%), hsl(248, 48%, 17%))
hex
background-color: #3D318C;
tailwind
bg-[hsl(248,48%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 48%, 37%, 0.4);
css variable
--color-primary: hsl(248, 48%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 48%, 37%)?
HEX: #3D318C | RGB: rgb(61, 49, 140) | CMYK: 56%, 65%, 0%, 45% | HSV: 248°, 65%, 55%. Copy any format from the conversion table above.
What colors go well with #3D318C?
The complementary color is HSL(68, 48%, 37%). 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, 48%, 37%) in CSS?
As HSL: color: hsl(248, 48%, 37%); — As HEX: color: #3D318C; — As RGB: color: rgb(61, 49, 140); — Tailwind CSS: bg-[hsl(248,48%,37%)] — CSS variable: --color-primary: hsl(248, 48%, 37%);