HSL(207, 95%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(207,95%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(207, 95%, 31%) | color: hsl(207, 95%, 31%) | |
| HEX | #04579A | color: #04579A | |
| RGB | rgb(4, 87, 154) | color: rgb(4, 87, 154) | |
| CMYK | cmyk(97%, 44%, 0%, 40%) | — | |
| HSV | hsv(207, 97%, 60%) | — | |
| HWB | hwb(207 2% 40%) | color: hwb(207 2% 40%) | |
| OKLCH | oklch(0.4517 0.1292 251) | color: oklch(0.4517 0.1292 251) | |
| Lab | lab(36.32 4.8 -42.56) | color: lab(36.32 4.8 -42.56) | |
| LCH | lch(36.32 42.83 276.43) | color: lch(36.32 42.83 276.43) |
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)
#28298A — rgb(40, 41, 138)
Deuteranopia (Green-blind)
#231D86 — rgb(35, 29, 134)
Tritanopia (Blue-blind)
#087D7A — rgb(8, 125, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(207, 95%, 31%);
text
color: hsl(207, 95%, 31%);
border
border: 2px solid hsl(207, 95%, 31%);
gradient light
background: linear-gradient(to right, hsl(207, 95%, 51%), hsl(207, 95%, 31%));
gradient dark
background: linear-gradient(to right, hsl(207, 95%, 31%), hsl(207, 95%, 11%))
hex
background-color: #04579A;
tailwind
bg-[hsl(207,95%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(207, 95%, 31%, 0.4);
css variable
--color-primary: hsl(207, 95%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(207, 95%, 31%)?
HEX: #04579A | RGB: rgb(4, 87, 154) | CMYK: 97%, 44%, 0%, 40% | HSV: 207°, 97%, 60%. Copy any format from the conversion table above.
What colors go well with #04579A?
The complementary color is HSL(27, 95%, 31%). For a triadic harmony, use hues 207°, 327°, and 87°. For analogous combinations, try hues 177° and 237°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(207, 95%, 31%) in CSS?
As HSL: color: hsl(207, 95%, 31%); — As HEX: color: #04579A; — As RGB: color: rgb(4, 87, 154); — Tailwind CSS: bg-[hsl(207,95%,31%)] — CSS variable: --color-primary: hsl(207, 95%, 31%);