HSL(245, 63%, 15%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,63%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 63%, 15%) | color: hsl(245, 63%, 15%) | |
| HEX | #120E3E | color: #120E3E | |
| RGB | rgb(18, 14, 62) | color: rgb(18, 14, 62) | |
| CMYK | cmyk(71%, 77%, 0%, 76%) | — | |
| HSV | hsv(245, 77%, 24%) | — | |
| HWB | hwb(245 6% 76%) | color: hwb(245 6% 76%) | |
| OKLCH | oklch(0.2073 0.0877 279.23) | color: oklch(0.2073 0.0877 279.23) | |
| Lab | lab(7.14 19.09 -29.97) | color: lab(7.14 19.09 -29.97) | |
| LCH | lch(7.14 35.53 302.5) | color: lch(7.14 35.53 302.5) |
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)
#101032 — rgb(16, 16, 50)
Deuteranopia (Green-blind)
#111130 — rgb(17, 17, 48)
Tritanopia (Blue-blind)
#122927 — rgb(18, 41, 39)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 63%, 15%);
text
color: hsl(245, 63%, 15%);
border
border: 2px solid hsl(245, 63%, 15%);
gradient light
background: linear-gradient(to right, hsl(245, 63%, 35%), hsl(245, 63%, 15%));
gradient dark
background: linear-gradient(to right, hsl(245, 63%, 15%), hsl(245, 63%, 0%))
hex
background-color: #120E3E;
tailwind
bg-[hsl(245,63%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 63%, 15%, 0.4);
css variable
--color-primary: hsl(245, 63%, 15%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 63%, 15%)?
HEX: #120E3E | RGB: rgb(18, 14, 62) | CMYK: 71%, 77%, 0%, 76% | HSV: 245°, 77%, 24%. Copy any format from the conversion table above.
What colors go well with #120E3E?
The complementary color is HSL(65, 63%, 15%). 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, 63%, 15%) in CSS?
As HSL: color: hsl(245, 63%, 15%); — As HEX: color: #120E3E; — As RGB: color: rgb(18, 14, 62); — Tailwind CSS: bg-[hsl(245,63%,15%)] — CSS variable: --color-primary: hsl(245, 63%, 15%);