HSL(245, 48%, 23%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,48%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 48%, 23%) | color: hsl(245, 48%, 23%) | |
| HEX | #231E57 | color: #231E57 | |
| RGB | rgb(35, 30, 87) | color: rgb(35, 30, 87) | |
| CMYK | cmyk(60%, 66%, 0%, 66%) | — | |
| HSV | hsv(245, 66%, 34%) | — | |
| HWB | hwb(245 12% 66%) | color: hwb(245 12% 66%) | |
| OKLCH | oklch(0.2788 0.0992 281.78) | color: oklch(0.2788 0.0992 281.78) | |
| Lab | lab(15.35 20.7 -33.85) | color: lab(15.35 20.7 -33.85) | |
| LCH | lch(15.35 39.68 301.45) | color: lch(15.35 39.68 301.45) |
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)
#212149 — rgb(33, 33, 73)
Deuteranopia (Green-blind)
#212246 — rgb(33, 34, 70)
Tritanopia (Blue-blind)
#233E3C — rgb(35, 62, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 48%, 23%);
text
color: hsl(245, 48%, 23%);
border
border: 2px solid hsl(245, 48%, 23%);
gradient light
background: linear-gradient(to right, hsl(245, 48%, 43%), hsl(245, 48%, 23%));
gradient dark
background: linear-gradient(to right, hsl(245, 48%, 23%), hsl(245, 48%, 3%))
hex
background-color: #231E57;
tailwind
bg-[hsl(245,48%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 48%, 23%, 0.4);
css variable
--color-primary: hsl(245, 48%, 23%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 48%, 23%)?
HEX: #231E57 | RGB: rgb(35, 30, 87) | CMYK: 60%, 66%, 0%, 66% | HSV: 245°, 66%, 34%. Copy any format from the conversion table above.
What colors go well with #231E57?
The complementary color is HSL(65, 48%, 23%). 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, 48%, 23%) in CSS?
As HSL: color: hsl(245, 48%, 23%); — As HEX: color: #231E57; — As RGB: color: rgb(35, 30, 87); — Tailwind CSS: bg-[hsl(245,48%,23%)] — CSS variable: --color-primary: hsl(245, 48%, 23%);