HSL(233, 31%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,31%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 31%, 42%) | color: hsl(233, 31%, 42%) | |
| HEX | #4A528C | color: #4A528C | |
| RGB | rgb(74, 82, 140) | color: rgb(74, 82, 140) | |
| CMYK | cmyk(47%, 41%, 0%, 45%) | — | |
| HSV | hsv(233, 47%, 55%) | — | |
| HWB | hwb(233 29% 45%) | color: hwb(233 29% 45%) | |
| OKLCH | oklch(0.4594 0.0946 276.08) | color: oklch(0.4594 0.0946 276.08) | |
| Lab | lab(36.71 13.26 -33.29) | color: lab(36.71 13.26 -33.29) | |
| LCH | lch(36.71 35.83 291.72) | color: lch(36.71 35.83 291.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)
#4D4E7E — rgb(77, 78, 126)
Deuteranopia (Green-blind)
#4D4C7B — rgb(77, 76, 123)
Tritanopia (Blue-blind)
#4A7370 — rgb(74, 115, 112)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 31%, 42%);
text
color: hsl(233, 31%, 42%);
border
border: 2px solid hsl(233, 31%, 42%);
gradient light
background: linear-gradient(to right, hsl(233, 31%, 62%), hsl(233, 31%, 42%));
gradient dark
background: linear-gradient(to right, hsl(233, 31%, 42%), hsl(233, 31%, 22%))
hex
background-color: #4A528C;
tailwind
bg-[hsl(233,31%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 31%, 42%, 0.4);
css variable
--color-primary: hsl(233, 31%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 31%, 42%)?
HEX: #4A528C | RGB: rgb(74, 82, 140) | CMYK: 47%, 41%, 0%, 45% | HSV: 233°, 47%, 55%. Copy any format from the conversion table above.
What colors go well with #4A528C?
The complementary color is HSL(53, 31%, 42%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(233, 31%, 42%) in CSS?
As HSL: color: hsl(233, 31%, 42%); — As HEX: color: #4A528C; — As RGB: color: rgb(74, 82, 140); — Tailwind CSS: bg-[hsl(233,31%,42%)] — CSS variable: --color-primary: hsl(233, 31%, 42%);