HSL(228, 40%, 33%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,40%,33%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 40%, 33%) | color: hsl(228, 40%, 33%) | |
| HEX | #324076 | color: #324076 | |
| RGB | rgb(50, 64, 118) | color: rgb(50, 64, 118) | |
| CMYK | cmyk(58%, 46%, 0%, 54%) | — | |
| HSV | hsv(228, 58%, 46%) | — | |
| HWB | hwb(228 19% 54%) | color: hwb(228 19% 54%) | |
| OKLCH | oklch(0.388 0.0932 270.61) | color: oklch(0.388 0.0932 270.61) | |
| Lab | lab(28.52 11.71 -32.78) | color: lab(28.52 11.71 -32.78) | |
| LCH | lch(28.52 34.81 289.66) | color: lch(28.52 34.81 289.66) |
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)
#383869 — rgb(56, 56, 105)
Deuteranopia (Green-blind)
#373666 — rgb(55, 54, 102)
Tritanopia (Blue-blind)
#335F5C — rgb(51, 95, 92)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 40%, 33%);
text
color: hsl(228, 40%, 33%);
border
border: 2px solid hsl(228, 40%, 33%);
gradient light
background: linear-gradient(to right, hsl(228, 40%, 53%), hsl(228, 40%, 33%));
gradient dark
background: linear-gradient(to right, hsl(228, 40%, 33%), hsl(228, 40%, 13%))
hex
background-color: #324076;
tailwind
bg-[hsl(228,40%,33%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 40%, 33%, 0.4);
css variable
--color-primary: hsl(228, 40%, 33%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 40%, 33%)?
HEX: #324076 | RGB: rgb(50, 64, 118) | CMYK: 58%, 46%, 0%, 54% | HSV: 228°, 58%, 46%. Copy any format from the conversion table above.
What colors go well with #324076?
The complementary color is HSL(48, 40%, 33%). For a triadic harmony, use hues 228°, 348°, and 108°. For analogous combinations, try hues 198° and 258°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(228, 40%, 33%) in CSS?
As HSL: color: hsl(228, 40%, 33%); — As HEX: color: #324076; — As RGB: color: rgb(50, 64, 118); — Tailwind CSS: bg-[hsl(228,40%,33%)] — CSS variable: --color-primary: hsl(228, 40%, 33%);