HSL(230, 28%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(230,28%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(230, 28%, 42%) | color: hsl(230, 28%, 42%) | |
| HEX | #4D5789 | color: #4D5789 | |
| RGB | rgb(77, 87, 137) | color: rgb(77, 87, 137) | |
| CMYK | cmyk(44%, 36%, 0%, 46%) | — | |
| HSV | hsv(230, 44%, 54%) | — | |
| HWB | hwb(230 30% 46%) | color: hwb(230 30% 46%) | |
| OKLCH | oklch(0.4709 0.082 274.24) | color: oklch(0.4709 0.082 274.24) | |
| Lab | lab(38.2 9.92 -29.11) | color: lab(38.2 9.92 -29.11) | |
| LCH | lch(38.2 30.75 288.82) | color: lch(38.2 30.75 288.82) |
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)
#51517D — rgb(81, 81, 125)
Deuteranopia (Green-blind)
#51507A — rgb(81, 80, 122)
Tritanopia (Blue-blind)
#4E7371 — rgb(78, 115, 113)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(230, 28%, 42%);
text
color: hsl(230, 28%, 42%);
border
border: 2px solid hsl(230, 28%, 42%);
gradient light
background: linear-gradient(to right, hsl(230, 28%, 62%), hsl(230, 28%, 42%));
gradient dark
background: linear-gradient(to right, hsl(230, 28%, 42%), hsl(230, 28%, 22%))
hex
background-color: #4D5789;
tailwind
bg-[hsl(230,28%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(230, 28%, 42%, 0.4);
css variable
--color-primary: hsl(230, 28%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(230, 28%, 42%)?
HEX: #4D5789 | RGB: rgb(77, 87, 137) | CMYK: 44%, 36%, 0%, 46% | HSV: 230°, 44%, 54%. Copy any format from the conversion table above.
What colors go well with #4D5789?
The complementary color is HSL(50, 28%, 42%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(230, 28%, 42%) in CSS?
As HSL: color: hsl(230, 28%, 42%); — As HEX: color: #4D5789; — As RGB: color: rgb(77, 87, 137); — Tailwind CSS: bg-[hsl(230,28%,42%)] — CSS variable: --color-primary: hsl(230, 28%, 42%);