HSL(248, 90%, 27%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,90%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 90%, 27%) | color: hsl(248, 90%, 27%) | |
| HEX | #170783 | color: #170783 | |
| RGB | rgb(23, 7, 131) | color: rgb(23, 7, 131) | |
| CMYK | cmyk(82%, 95%, 0%, 49%) | — | |
| HSV | hsv(248, 95%, 51%) | — | |
| HWB | hwb(248 3% 49%) | color: hwb(248 3% 49%) | |
| OKLCH | oklch(0.2912 0.181 271.3) | color: oklch(0.2912 0.181 271.3) | |
| Lab | lab(15.34 46.12 -62.63) | color: lab(15.34 46.12 -62.63) | |
| LCH | lch(15.34 77.78 306.37) | color: lch(15.34 77.78 306.37) |
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)
#101065 — rgb(16, 16, 101)
Deuteranopia (Green-blind)
#11125E — rgb(17, 18, 94)
Tritanopia (Blue-blind)
#164D48 — rgb(22, 77, 72)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 90%, 27%);
text
color: hsl(248, 90%, 27%);
border
border: 2px solid hsl(248, 90%, 27%);
gradient light
background: linear-gradient(to right, hsl(248, 90%, 47%), hsl(248, 90%, 27%));
gradient dark
background: linear-gradient(to right, hsl(248, 90%, 27%), hsl(248, 90%, 7%))
hex
background-color: #170783;
tailwind
bg-[hsl(248,90%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 90%, 27%, 0.4);
css variable
--color-primary: hsl(248, 90%, 27%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 90%, 27%)?
HEX: #170783 | RGB: rgb(23, 7, 131) | CMYK: 82%, 95%, 0%, 49% | HSV: 248°, 95%, 51%. Copy any format from the conversion table above.
What colors go well with #170783?
The complementary color is HSL(68, 90%, 27%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 90%, 27%) in CSS?
As HSL: color: hsl(248, 90%, 27%); — As HEX: color: #170783; — As RGB: color: rgb(23, 7, 131); — Tailwind CSS: bg-[hsl(248,90%,27%)] — CSS variable: --color-primary: hsl(248, 90%, 27%);