HSL(228, 30%, 36%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,30%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 30%, 36%) | color: hsl(228, 30%, 36%) | |
| HEX | #404B77 | color: #404B77 | |
| RGB | rgb(64, 75, 119) | color: rgb(64, 75, 119) | |
| CMYK | cmyk(46%, 37%, 0%, 53%) | — | |
| HSV | hsv(228, 46%, 47%) | — | |
| HWB | hwb(228 25% 53%) | color: hwb(228 25% 53%) | |
| OKLCH | oklch(0.4238 0.0747 272.21) | color: oklch(0.4238 0.0747 272.21) | |
| Lab | lab(32.82 8.33 -26.54) | color: lab(32.82 8.33 -26.54) | |
| LCH | lch(32.82 27.82 287.43) | color: lch(32.82 27.82 287.43) |
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)
#45456C — rgb(69, 69, 108)
Deuteranopia (Green-blind)
#44436A — rgb(68, 67, 106)
Tritanopia (Blue-blind)
#416462 — rgb(65, 100, 98)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 30%, 36%);
text
color: hsl(228, 30%, 36%);
border
border: 2px solid hsl(228, 30%, 36%);
gradient light
background: linear-gradient(to right, hsl(228, 30%, 56%), hsl(228, 30%, 36%));
gradient dark
background: linear-gradient(to right, hsl(228, 30%, 36%), hsl(228, 30%, 16%))
hex
background-color: #404B77;
tailwind
bg-[hsl(228,30%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 30%, 36%, 0.4);
css variable
--color-primary: hsl(228, 30%, 36%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 30%, 36%)?
HEX: #404B77 | RGB: rgb(64, 75, 119) | CMYK: 46%, 37%, 0%, 53% | HSV: 228°, 46%, 47%. Copy any format from the conversion table above.
What colors go well with #404B77?
The complementary color is HSL(48, 30%, 36%). 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, 30%, 36%) in CSS?
As HSL: color: hsl(228, 30%, 36%); — As HEX: color: #404B77; — As RGB: color: rgb(64, 75, 119); — Tailwind CSS: bg-[hsl(228,30%,36%)] — CSS variable: --color-primary: hsl(228, 30%, 36%);