HSL(205, 70%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(205,70%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(205, 70%, 40%) | color: hsl(205, 70%, 40%) | |
| HEX | #1F72AD | color: #1F72AD | |
| RGB | rgb(31, 114, 173) | color: rgb(31, 114, 173) | |
| CMYK | cmyk(82%, 34%, 0%, 32%) | — | |
| HSV | hsv(205, 82%, 68%) | — | |
| HWB | hwb(205 12% 32%) | color: hwb(205 12% 32%) | |
| OKLCH | oklch(0.5332 0.12 245) | color: oklch(0.5332 0.12 245) | |
| Lab | lab(46.1 -2.84 -38.23) | color: lab(46.1 -2.84 -38.23) | |
| LCH | lch(46.1 38.34 265.75) | color: lch(46.1 38.34 265.75) |
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)
#43449F — rgb(67, 68, 159)
Deuteranopia (Green-blind)
#3E389B — rgb(62, 56, 155)
Tritanopia (Blue-blind)
#239391 — rgb(35, 147, 145)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(205, 70%, 40%);
text
color: hsl(205, 70%, 40%);
border
border: 2px solid hsl(205, 70%, 40%);
gradient light
background: linear-gradient(to right, hsl(205, 70%, 60%), hsl(205, 70%, 40%));
gradient dark
background: linear-gradient(to right, hsl(205, 70%, 40%), hsl(205, 70%, 20%))
hex
background-color: #1F72AD;
tailwind
bg-[hsl(205,70%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(205, 70%, 40%, 0.4);
css variable
--color-primary: hsl(205, 70%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(205, 70%, 40%)?
HEX: #1F72AD | RGB: rgb(31, 114, 173) | CMYK: 82%, 34%, 0%, 32% | HSV: 205°, 82%, 68%. Copy any format from the conversion table above.
What colors go well with #1F72AD?
The complementary color is HSL(25, 70%, 40%). For a triadic harmony, use hues 205°, 325°, and 85°. For analogous combinations, try hues 175° and 235°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(205, 70%, 40%) in CSS?
As HSL: color: hsl(205, 70%, 40%); — As HEX: color: #1F72AD; — As RGB: color: rgb(31, 114, 173); — Tailwind CSS: bg-[hsl(205,70%,40%)] — CSS variable: --color-primary: hsl(205, 70%, 40%);