HSL(252, 60%, 38%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(252,60%,38%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(252, 60%, 38%) | color: hsl(252, 60%, 38%) | |
| HEX | #3E279B | color: #3E279B | |
| RGB | rgb(62, 39, 155) | color: rgb(62, 39, 155) | |
| CMYK | cmyk(60%, 75%, 0%, 39%) | — | |
| HSV | hsv(252, 75%, 61%) | — | |
| HWB | hwb(252 15% 39%) | color: hwb(252 15% 39%) | |
| OKLCH | oklch(0.3832 0.1758 283.41) | color: oklch(0.3832 0.1758 283.41) | |
| Lab | lab(26.28 42.47 -59.36) | color: lab(26.28 42.47 -59.36) | |
| LCH | lch(26.28 72.99 305.58) | color: lch(26.28 72.99 305.58) |
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)
#34347F — rgb(52, 52, 127)
Deuteranopia (Green-blind)
#353778 — rgb(53, 55, 120)
Tritanopia (Blue-blind)
#3D6964 — rgb(61, 105, 100)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(252, 60%, 38%);
text
color: hsl(252, 60%, 38%);
border
border: 2px solid hsl(252, 60%, 38%);
gradient light
background: linear-gradient(to right, hsl(252, 60%, 58%), hsl(252, 60%, 38%));
gradient dark
background: linear-gradient(to right, hsl(252, 60%, 38%), hsl(252, 60%, 18%))
hex
background-color: #3E279B;
tailwind
bg-[hsl(252,60%,38%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(252, 60%, 38%, 0.4);
css variable
--color-primary: hsl(252, 60%, 38%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(252, 60%, 38%)?
HEX: #3E279B | RGB: rgb(62, 39, 155) | CMYK: 60%, 75%, 0%, 39% | HSV: 252°, 75%, 61%. Copy any format from the conversion table above.
What colors go well with #3E279B?
The complementary color is HSL(72, 60%, 38%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(252, 60%, 38%) in CSS?
As HSL: color: hsl(252, 60%, 38%); — As HEX: color: #3E279B; — As RGB: color: rgb(62, 39, 155); — Tailwind CSS: bg-[hsl(252,60%,38%)] — CSS variable: --color-primary: hsl(252, 60%, 38%);