HSL(246, 40%, 35%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(246,40%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 40%, 35%) | color: hsl(246, 40%, 35%) | |
| HEX | #3D367D | color: #3D367D | |
| RGB | rgb(61, 54, 125) | color: rgb(61, 54, 125) | |
| CMYK | cmyk(51%, 57%, 0%, 51%) | — | |
| HSV | hsv(246, 57%, 49%) | — | |
| HWB | hwb(246 21% 51%) | color: hwb(246 21% 51%) | |
| OKLCH | oklch(0.3806 0.1162 283.88) | color: oklch(0.3806 0.1162 283.88) | |
| Lab | lab(27.05 23.47 -39.5) | color: lab(27.05 23.47 -39.5) | |
| LCH | lch(27.05 45.95 300.72) | color: lch(27.05 45.95 300.72) |
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)
#3A3A6C — rgb(58, 58, 108)
Deuteranopia (Green-blind)
#3A3B68 — rgb(58, 59, 104)
Tritanopia (Blue-blind)
#3D5E5B — rgb(61, 94, 91)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 40%, 35%);
text
color: hsl(246, 40%, 35%);
border
border: 2px solid hsl(246, 40%, 35%);
gradient light
background: linear-gradient(to right, hsl(246, 40%, 55%), hsl(246, 40%, 35%));
gradient dark
background: linear-gradient(to right, hsl(246, 40%, 35%), hsl(246, 40%, 15%))
hex
background-color: #3D367D;
tailwind
bg-[hsl(246,40%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 40%, 35%, 0.4);
css variable
--color-primary: hsl(246, 40%, 35%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 40%, 35%)?
HEX: #3D367D | RGB: rgb(61, 54, 125) | CMYK: 51%, 57%, 0%, 51% | HSV: 246°, 57%, 49%. Copy any format from the conversion table above.
What colors go well with #3D367D?
The complementary color is HSL(66, 40%, 35%). For a triadic harmony, use hues 246°, 6°, and 126°. For analogous combinations, try hues 216° and 276°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(246, 40%, 35%) in CSS?
As HSL: color: hsl(246, 40%, 35%); — As HEX: color: #3D367D; — As RGB: color: rgb(61, 54, 125); — Tailwind CSS: bg-[hsl(246,40%,35%)] — CSS variable: --color-primary: hsl(246, 40%, 35%);