HSL(246, 34%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(246,34%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 34%, 40%) | color: hsl(246, 34%, 40%) | |
| HEX | #4A4389 | color: #4A4389 | |
| RGB | rgb(74, 67, 137) | color: rgb(74, 67, 137) | |
| CMYK | cmyk(46%, 51%, 0%, 46%) | — | |
| HSV | hsv(246, 51%, 54%) | — | |
| HWB | hwb(246 26% 46%) | color: hwb(246 26% 46%) | |
| OKLCH | oklch(0.4263 0.1126 285.11) | color: oklch(0.4263 0.1126 285.11) | |
| Lab | lab(32.43 22.04 -38.27) | color: lab(32.43 22.04 -38.27) | |
| LCH | lch(32.43 44.16 299.94) | color: lch(32.43 44.16 299.94) |
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)
#474778 — rgb(71, 71, 120)
Deuteranopia (Green-blind)
#474874 — rgb(71, 72, 116)
Tritanopia (Blue-blind)
#4A6B68 — rgb(74, 107, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 34%, 40%);
text
color: hsl(246, 34%, 40%);
border
border: 2px solid hsl(246, 34%, 40%);
gradient light
background: linear-gradient(to right, hsl(246, 34%, 60%), hsl(246, 34%, 40%));
gradient dark
background: linear-gradient(to right, hsl(246, 34%, 40%), hsl(246, 34%, 20%))
hex
background-color: #4A4389;
tailwind
bg-[hsl(246,34%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 34%, 40%, 0.4);
css variable
--color-primary: hsl(246, 34%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 34%, 40%)?
HEX: #4A4389 | RGB: rgb(74, 67, 137) | CMYK: 46%, 51%, 0%, 46% | HSV: 246°, 51%, 54%. Copy any format from the conversion table above.
What colors go well with #4A4389?
The complementary color is HSL(66, 34%, 40%). 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, 34%, 40%) in CSS?
As HSL: color: hsl(246, 34%, 40%); — As HEX: color: #4A4389; — As RGB: color: rgb(74, 67, 137); — Tailwind CSS: bg-[hsl(246,34%,40%)] — CSS variable: --color-primary: hsl(246, 34%, 40%);