HSL(241, 52%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(241,52%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(241, 52%, 31%) | color: hsl(241, 52%, 31%) | |
| HEX | #272678 | color: #272678 | |
| RGB | rgb(39, 38, 120) | color: rgb(39, 38, 120) | |
| CMYK | cmyk(68%, 68%, 0%, 53%) | — | |
| HSV | hsv(241, 68%, 47%) | — | |
| HWB | hwb(241 15% 53%) | color: hwb(241 15% 53%) | |
| OKLCH | oklch(0.3282 0.1355 276.44) | color: oklch(0.3282 0.1355 276.44) | |
| Lab | lab(20.72 28.03 -46.69) | color: lab(20.72 28.03 -46.69) | |
| LCH | lch(20.72 54.46 300.98) | color: lch(20.72 54.46 300.98) |
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)
#272764 — rgb(39, 39, 100)
Deuteranopia (Green-blind)
#27275F — rgb(39, 39, 95)
Tritanopia (Blue-blind)
#275451 — rgb(39, 84, 81)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(241, 52%, 31%);
text
color: hsl(241, 52%, 31%);
border
border: 2px solid hsl(241, 52%, 31%);
gradient light
background: linear-gradient(to right, hsl(241, 52%, 51%), hsl(241, 52%, 31%));
gradient dark
background: linear-gradient(to right, hsl(241, 52%, 31%), hsl(241, 52%, 11%))
hex
background-color: #272678;
tailwind
bg-[hsl(241,52%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(241, 52%, 31%, 0.4);
css variable
--color-primary: hsl(241, 52%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(241, 52%, 31%)?
HEX: #272678 | RGB: rgb(39, 38, 120) | CMYK: 68%, 68%, 0%, 53% | HSV: 241°, 68%, 47%. Copy any format from the conversion table above.
What colors go well with #272678?
The complementary color is HSL(61, 52%, 31%). For a triadic harmony, use hues 241°, 1°, and 121°. For analogous combinations, try hues 211° and 271°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(241, 52%, 31%) in CSS?
As HSL: color: hsl(241, 52%, 31%); — As HEX: color: #272678; — As RGB: color: rgb(39, 38, 120); — Tailwind CSS: bg-[hsl(241,52%,31%)] — CSS variable: --color-primary: hsl(241, 52%, 31%);