HSL(245, 37%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,37%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 37%, 20%) | color: hsl(245, 37%, 20%) | |
| HEX | #232046 | color: #232046 | |
| RGB | rgb(35, 32, 70) | color: rgb(35, 32, 70) | |
| CMYK | cmyk(50%, 54%, 0%, 73%) | — | |
| HSV | hsv(245, 54%, 27%) | — | |
| HWB | hwb(245 12% 73%) | color: hwb(245 12% 73%) | |
| OKLCH | oklch(0.2689 0.0688 284.34) | color: oklch(0.2689 0.0688 284.34) | |
| Lab | lab(14.58 13.11 -23.48) | color: lab(14.58 13.11 -23.48) | |
| LCH | lch(14.58 26.89 299.18) | color: lch(14.58 26.89 299.18) |
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)
#22223D — rgb(34, 34, 61)
Deuteranopia (Green-blind)
#22223B — rgb(34, 34, 59)
Tritanopia (Blue-blind)
#233634 — rgb(35, 54, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 37%, 20%);
text
color: hsl(245, 37%, 20%);
border
border: 2px solid hsl(245, 37%, 20%);
gradient light
background: linear-gradient(to right, hsl(245, 37%, 40%), hsl(245, 37%, 20%));
gradient dark
background: linear-gradient(to right, hsl(245, 37%, 20%), hsl(245, 37%, 0%))
hex
background-color: #232046;
tailwind
bg-[hsl(245,37%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 37%, 20%, 0.4);
css variable
--color-primary: hsl(245, 37%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 37%, 20%)?
HEX: #232046 | RGB: rgb(35, 32, 70) | CMYK: 50%, 54%, 0%, 73% | HSV: 245°, 54%, 27%. Copy any format from the conversion table above.
What colors go well with #232046?
The complementary color is HSL(65, 37%, 20%). 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, 37%, 20%) in CSS?
As HSL: color: hsl(245, 37%, 20%); — As HEX: color: #232046; — As RGB: color: rgb(35, 32, 70); — Tailwind CSS: bg-[hsl(245,37%,20%)] — CSS variable: --color-primary: hsl(245, 37%, 20%);