HSL(245, 61%, 45%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,61%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 61%, 45%) | color: hsl(245, 61%, 45%) | |
| HEX | #382DB9 | color: #382DB9 | |
| RGB | rgb(56, 45, 185) | color: rgb(56, 45, 185) | |
| CMYK | cmyk(70%, 76%, 0%, 27%) | — | |
| HSV | hsv(245, 76%, 73%) | — | |
| HWB | hwb(245 18% 27%) | color: hwb(245 18% 27%) | |
| OKLCH | oklch(0.417 0.2074 275.99) | color: oklch(0.417 0.2074 275.99) | |
| Lab | lab(29.96 47.93 -71.37) | color: lab(29.96 47.93 -71.37) | |
| LCH | lch(29.96 85.97 303.88) | color: lch(29.96 85.97 303.88) |
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)
#333397 — rgb(51, 51, 151)
Deuteranopia (Green-blind)
#34358F — rgb(52, 53, 143)
Tritanopia (Blue-blind)
#377C77 — rgb(55, 124, 119)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 61%, 45%);
text
color: hsl(245, 61%, 45%);
border
border: 2px solid hsl(245, 61%, 45%);
gradient light
background: linear-gradient(to right, hsl(245, 61%, 65%), hsl(245, 61%, 45%));
gradient dark
background: linear-gradient(to right, hsl(245, 61%, 45%), hsl(245, 61%, 25%))
hex
background-color: #382DB9;
tailwind
bg-[hsl(245,61%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 61%, 45%, 0.4);
css variable
--color-primary: hsl(245, 61%, 45%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 61%, 45%)?
HEX: #382DB9 | RGB: rgb(56, 45, 185) | CMYK: 70%, 76%, 0%, 27% | HSV: 245°, 76%, 73%. Copy any format from the conversion table above.
What colors go well with #382DB9?
The complementary color is HSL(65, 61%, 45%). For a triadic harmony, use hues 245°, 5°, and 125°. For analogous combinations, try hues 215° and 275°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(245, 61%, 45%) in CSS?
As HSL: color: hsl(245, 61%, 45%); — As HEX: color: #382DB9; — As RGB: color: rgb(56, 45, 185); — Tailwind CSS: bg-[hsl(245,61%,45%)] — CSS variable: --color-primary: hsl(245, 61%, 45%);