HSL(235, 90%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(235,90%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(235, 90%, 21%) | color: hsl(235, 90%, 21%) | |
| HEX | #050D66 | color: #050D66 | |
| RGB | rgb(5, 13, 102) | color: rgb(5, 13, 102) | |
| CMYK | cmyk(95%, 87%, 0%, 60%) | — | |
| HSV | hsv(235, 95%, 40%) | — | |
| HWB | hwb(235 2% 60%) | color: hwb(235 2% 60%) | |
| OKLCH | oklch(0.2483 0.1478 266.23) | color: oklch(0.2483 0.1478 266.23) | |
| Lab | lab(11.13 33.8 -50.89) | color: lab(11.13 33.8 -50.89) | |
| LCH | lch(11.13 61.09 303.59) | color: lch(11.13 61.09 303.59) |
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)
#080950 — rgb(8, 9, 80)
Deuteranopia (Green-blind)
#08074B — rgb(8, 7, 75)
Tritanopia (Blue-blind)
#053F3C — rgb(5, 63, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(235, 90%, 21%);
text
color: hsl(235, 90%, 21%);
border
border: 2px solid hsl(235, 90%, 21%);
gradient light
background: linear-gradient(to right, hsl(235, 90%, 41%), hsl(235, 90%, 21%));
gradient dark
background: linear-gradient(to right, hsl(235, 90%, 21%), hsl(235, 90%, 1%))
hex
background-color: #050D66;
tailwind
bg-[hsl(235,90%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(235, 90%, 21%, 0.4);
css variable
--color-primary: hsl(235, 90%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(235, 90%, 21%)?
HEX: #050D66 | RGB: rgb(5, 13, 102) | CMYK: 95%, 87%, 0%, 60% | HSV: 235°, 95%, 40%. Copy any format from the conversion table above.
What colors go well with #050D66?
The complementary color is HSL(55, 90%, 21%). For a triadic harmony, use hues 235°, 355°, and 115°. For analogous combinations, try hues 205° and 265°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(235, 90%, 21%) in CSS?
As HSL: color: hsl(235, 90%, 21%); — As HEX: color: #050D66; — As RGB: color: rgb(5, 13, 102); — Tailwind CSS: bg-[hsl(235,90%,21%)] — CSS variable: --color-primary: hsl(235, 90%, 21%);