HSL(227, 50%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(227,50%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(227, 50%, 31%) | color: hsl(227, 50%, 31%) | |
| HEX | #283977 | color: #283977 | |
| RGB | rgb(40, 57, 119) | color: rgb(40, 57, 119) | |
| CMYK | cmyk(66%, 52%, 0%, 53%) | — | |
| HSV | hsv(227, 66%, 47%) | — | |
| HWB | hwb(227 16% 53%) | color: hwb(227 16% 53%) | |
| OKLCH | oklch(0.3665 0.1079 269) | color: oklch(0.3665 0.1079 269) | |
| Lab | lab(25.89 14.78 -37.67) | color: lab(25.89 14.78 -37.67) | |
| LCH | lch(25.89 40.47 291.42) | color: lch(25.89 40.47 291.42) |
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)
#2F3068 — rgb(47, 48, 104)
Deuteranopia (Green-blind)
#2E2D64 — rgb(46, 45, 100)
Tritanopia (Blue-blind)
#295C5A — rgb(41, 92, 90)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(227, 50%, 31%);
text
color: hsl(227, 50%, 31%);
border
border: 2px solid hsl(227, 50%, 31%);
gradient light
background: linear-gradient(to right, hsl(227, 50%, 51%), hsl(227, 50%, 31%));
gradient dark
background: linear-gradient(to right, hsl(227, 50%, 31%), hsl(227, 50%, 11%))
hex
background-color: #283977;
tailwind
bg-[hsl(227,50%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(227, 50%, 31%, 0.4);
css variable
--color-primary: hsl(227, 50%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(227, 50%, 31%)?
HEX: #283977 | RGB: rgb(40, 57, 119) | CMYK: 66%, 52%, 0%, 53% | HSV: 227°, 66%, 47%. Copy any format from the conversion table above.
What colors go well with #283977?
The complementary color is HSL(47, 50%, 31%). 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, 50%, 31%) in CSS?
As HSL: color: hsl(227, 50%, 31%); — As HEX: color: #283977; — As RGB: color: rgb(40, 57, 119); — Tailwind CSS: bg-[hsl(227,50%,31%)] — CSS variable: --color-primary: hsl(227, 50%, 31%);