HSL(227, 60%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,60%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 60%, 28%) | color: hsl(227, 60%, 28%) | |
| HEX | #1D2F72 | color: #1D2F72 | |
| RGB | rgb(29, 47, 114) | color: rgb(29, 47, 114) | |
| CMYK | cmyk(75%, 59%, 0%, 55%) | — | |
| HSV | hsv(227, 75%, 45%) | — | |
| HWB | hwb(227 11% 55%) | color: hwb(227 11% 55%) | |
| OKLCH | oklch(0.3341 0.1177 268.01) | color: oklch(0.3341 0.1177 268.01) | |
| Lab | lab(21.98 17.99 -40.84) | color: lab(21.98 17.99 -40.84) | |
| LCH | lch(21.98 44.63 293.77) | color: lch(21.98 44.63 293.77) |
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)
#252562 — rgb(37, 37, 98)
Deuteranopia (Green-blind)
#24225E — rgb(36, 34, 94)
Tritanopia (Blue-blind)
#1E5552 — rgb(30, 85, 82)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 60%, 28%);
text
color: hsl(227, 60%, 28%);
border
border: 2px solid hsl(227, 60%, 28%);
gradient light
background: linear-gradient(to right, hsl(227, 60%, 48%), hsl(227, 60%, 28%));
gradient dark
background: linear-gradient(to right, hsl(227, 60%, 28%), hsl(227, 60%, 8%))
hex
background-color: #1D2F72;
tailwind
bg-[hsl(227,60%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 60%, 28%, 0.4);
css variable
--color-primary: hsl(227, 60%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 60%, 28%)?
HEX: #1D2F72 | RGB: rgb(29, 47, 114) | CMYK: 75%, 59%, 0%, 55% | HSV: 227°, 75%, 45%. Copy any format from the conversion table above.
What colors go well with #1D2F72?
The complementary color is HSL(47, 60%, 28%). 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, 60%, 28%) in CSS?
As HSL: color: hsl(227, 60%, 28%); — As HEX: color: #1D2F72; — As RGB: color: rgb(29, 47, 114); — Tailwind CSS: bg-[hsl(227,60%,28%)] — CSS variable: --color-primary: hsl(227, 60%, 28%);