HSL(240, 65%, 35%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(240,65%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(240, 65%, 35%) | color: hsl(240, 65%, 35%) | |
| HEX | #1F1F93 | color: #1F1F93 | |
| RGB | rgb(31, 31, 147) | color: rgb(31, 31, 147) | |
| CMYK | cmyk(79%, 79%, 0%, 42%) | — | |
| HSV | hsv(240, 79%, 58%) | — | |
| HWB | hwb(240 12% 42%) | color: hwb(240 12% 42%) | |
| OKLCH | oklch(0.3408 0.1807 271.48) | color: oklch(0.3408 0.1807 271.48) | |
| Lab | lab(21.5 40.94 -62.41) | color: lab(21.5 40.94 -62.41) | |
| LCH | lch(21.5 74.64 303.26) | color: lch(21.5 74.64 303.26) |
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)
#1F1F77 — rgb(31, 31, 119)
Deuteranopia (Green-blind)
#1F1F70 — rgb(31, 31, 112)
Tritanopia (Blue-blind)
#1F615C — rgb(31, 97, 92)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(240, 65%, 35%);
text
color: hsl(240, 65%, 35%);
border
border: 2px solid hsl(240, 65%, 35%);
gradient light
background: linear-gradient(to right, hsl(240, 65%, 55%), hsl(240, 65%, 35%));
gradient dark
background: linear-gradient(to right, hsl(240, 65%, 35%), hsl(240, 65%, 15%))
hex
background-color: #1F1F93;
tailwind
bg-[hsl(240,65%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(240, 65%, 35%, 0.4);
css variable
--color-primary: hsl(240, 65%, 35%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(240, 65%, 35%)?
HEX: #1F1F93 | RGB: rgb(31, 31, 147) | CMYK: 79%, 79%, 0%, 42% | HSV: 240°, 79%, 58%. Copy any format from the conversion table above.
What colors go well with #1F1F93?
The complementary color is HSL(60, 65%, 35%). For a triadic harmony, use hues 240°, 0°, and 120°. For analogous combinations, try hues 210° and 270°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(240, 65%, 35%) in CSS?
As HSL: color: hsl(240, 65%, 35%); — As HEX: color: #1F1F93; — As RGB: color: rgb(31, 31, 147); — Tailwind CSS: bg-[hsl(240,65%,35%)] — CSS variable: --color-primary: hsl(240, 65%, 35%);