HSL(233, 50%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,50%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 50%, 31%) | color: hsl(233, 50%, 31%) | |
| HEX | #283177 | color: #283177 | |
| RGB | rgb(40, 49, 119) | color: rgb(40, 49, 119) | |
| CMYK | cmyk(66%, 59%, 0%, 53%) | — | |
| HSV | hsv(233, 66%, 47%) | — | |
| HWB | hwb(233 16% 53%) | color: hwb(233 16% 53%) | |
| OKLCH | oklch(0.3493 0.1191 273.06) | color: oklch(0.3493 0.1191 273.06) | |
| Lab | lab(23.6 20.35 -41.36) | color: lab(23.6 20.35 -41.36) | |
| LCH | lch(23.6 46.1 296.2) | color: lch(23.6 46.1 296.2) |
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)
#2C2C66 — rgb(44, 44, 102)
Deuteranopia (Green-blind)
#2B2B62 — rgb(43, 43, 98)
Tritanopia (Blue-blind)
#285956 — rgb(40, 89, 86)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 50%, 31%);
text
color: hsl(233, 50%, 31%);
border
border: 2px solid hsl(233, 50%, 31%);
gradient light
background: linear-gradient(to right, hsl(233, 50%, 51%), hsl(233, 50%, 31%));
gradient dark
background: linear-gradient(to right, hsl(233, 50%, 31%), hsl(233, 50%, 11%))
hex
background-color: #283177;
tailwind
bg-[hsl(233,50%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 50%, 31%, 0.4);
css variable
--color-primary: hsl(233, 50%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 50%, 31%)?
HEX: #283177 | RGB: rgb(40, 49, 119) | CMYK: 66%, 59%, 0%, 53% | HSV: 233°, 66%, 47%. Copy any format from the conversion table above.
What colors go well with #283177?
The complementary color is HSL(53, 50%, 31%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(233, 50%, 31%) in CSS?
As HSL: color: hsl(233, 50%, 31%); — As HEX: color: #283177; — As RGB: color: rgb(40, 49, 119); — Tailwind CSS: bg-[hsl(233,50%,31%)] — CSS variable: --color-primary: hsl(233, 50%, 31%);