HSL(227, 28%, 35%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,28%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 28%, 35%) | color: hsl(227, 28%, 35%) | |
| HEX | #404B72 | color: #404B72 | |
| RGB | rgb(64, 75, 114) | color: rgb(64, 75, 114) | |
| CMYK | cmyk(44%, 34%, 0%, 55%) | — | |
| HSV | hsv(227, 44%, 45%) | — | |
| HWB | hwb(227 25% 55%) | color: hwb(227 25% 55%) | |
| OKLCH | oklch(0.421 0.0667 271.29) | color: oklch(0.421 0.0667 271.29) | |
| Lab | lab(32.56 6.72 -23.82) | color: lab(32.56 6.72 -23.82) | |
| LCH | lch(32.56 24.75 285.75) | color: lch(32.56 24.75 285.75) |
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)
#454569 — rgb(69, 69, 105)
Deuteranopia (Green-blind)
#444366 — rgb(68, 67, 102)
Tritanopia (Blue-blind)
#41615F — rgb(65, 97, 95)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 28%, 35%);
text
color: hsl(227, 28%, 35%);
border
border: 2px solid hsl(227, 28%, 35%);
gradient light
background: linear-gradient(to right, hsl(227, 28%, 55%), hsl(227, 28%, 35%));
gradient dark
background: linear-gradient(to right, hsl(227, 28%, 35%), hsl(227, 28%, 15%))
hex
background-color: #404B72;
tailwind
bg-[hsl(227,28%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 28%, 35%, 0.4);
css variable
--color-primary: hsl(227, 28%, 35%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 28%, 35%)?
HEX: #404B72 | RGB: rgb(64, 75, 114) | CMYK: 44%, 34%, 0%, 55% | HSV: 227°, 44%, 45%. Copy any format from the conversion table above.
What colors go well with #404B72?
The complementary color is HSL(47, 28%, 35%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(227, 28%, 35%) in CSS?
As HSL: color: hsl(227, 28%, 35%); — As HEX: color: #404B72; — As RGB: color: rgb(64, 75, 114); — Tailwind CSS: bg-[hsl(227,28%,35%)] — CSS variable: --color-primary: hsl(227, 28%, 35%);