HSL(248, 40%, 43%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,40%,43%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 40%, 43%) | color: hsl(248, 40%, 43%) | |
| HEX | #4D429A | color: #4D429A | |
| RGB | rgb(77, 66, 154) | color: rgb(77, 66, 154) | |
| CMYK | cmyk(50%, 57%, 0%, 40%) | — | |
| HSV | hsv(248, 57%, 60%) | — | |
| HWB | hwb(248 26% 40%) | color: hwb(248 26% 40%) | |
| OKLCH | oklch(0.4392 0.1383 284.86) | color: oklch(0.4392 0.1383 284.86) | |
| Lab | lab(33.58 28.78 -46.8) | color: lab(33.58 28.78 -46.8) | |
| LCH | lch(33.58 54.94 301.59) | color: lch(33.58 54.94 301.59) |
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)
#484885 — rgb(72, 72, 133)
Deuteranopia (Green-blind)
#494A80 — rgb(73, 74, 128)
Tritanopia (Blue-blind)
#4C7470 — rgb(76, 116, 112)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 40%, 43%);
text
color: hsl(248, 40%, 43%);
border
border: 2px solid hsl(248, 40%, 43%);
gradient light
background: linear-gradient(to right, hsl(248, 40%, 63%), hsl(248, 40%, 43%));
gradient dark
background: linear-gradient(to right, hsl(248, 40%, 43%), hsl(248, 40%, 23%))
hex
background-color: #4D429A;
tailwind
bg-[hsl(248,40%,43%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 40%, 43%, 0.4);
css variable
--color-primary: hsl(248, 40%, 43%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 40%, 43%)?
HEX: #4D429A | RGB: rgb(77, 66, 154) | CMYK: 50%, 57%, 0%, 40% | HSV: 248°, 57%, 60%. Copy any format from the conversion table above.
What colors go well with #4D429A?
The complementary color is HSL(68, 40%, 43%). 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, 40%, 43%) in CSS?
As HSL: color: hsl(248, 40%, 43%); — As HEX: color: #4D429A; — As RGB: color: rgb(77, 66, 154); — Tailwind CSS: bg-[hsl(248,40%,43%)] — CSS variable: --color-primary: hsl(248, 40%, 43%);