HSL(246, 52%, 23%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(246,52%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 52%, 23%) | color: hsl(246, 52%, 23%) | |
| HEX | #221C59 | color: #221C59 | |
| RGB | rgb(34, 28, 89) | color: rgb(34, 28, 89) | |
| CMYK | cmyk(62%, 69%, 0%, 65%) | — | |
| HSV | hsv(246, 69%, 35%) | — | |
| HWB | hwb(246 11% 65%) | color: hwb(246 11% 65%) | |
| OKLCH | oklch(0.2759 0.1053 281.41) | color: oklch(0.2759 0.1053 281.41) | |
| Lab | lab(14.91 22.61 -35.92) | color: lab(14.91 22.61 -35.92) | |
| LCH | lch(14.91 42.44 302.19) | color: lch(14.91 42.44 302.19) |
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)
#1F1F4A — rgb(31, 31, 74)
Deuteranopia (Green-blind)
#202047 — rgb(32, 32, 71)
Tritanopia (Blue-blind)
#223F3C — rgb(34, 63, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 52%, 23%);
text
color: hsl(246, 52%, 23%);
border
border: 2px solid hsl(246, 52%, 23%);
gradient light
background: linear-gradient(to right, hsl(246, 52%, 43%), hsl(246, 52%, 23%));
gradient dark
background: linear-gradient(to right, hsl(246, 52%, 23%), hsl(246, 52%, 3%))
hex
background-color: #221C59;
tailwind
bg-[hsl(246,52%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 52%, 23%, 0.4);
css variable
--color-primary: hsl(246, 52%, 23%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 52%, 23%)?
HEX: #221C59 | RGB: rgb(34, 28, 89) | CMYK: 62%, 69%, 0%, 65% | HSV: 246°, 69%, 35%. Copy any format from the conversion table above.
What colors go well with #221C59?
The complementary color is HSL(66, 52%, 23%). For a triadic harmony, use hues 246°, 6°, and 126°. For analogous combinations, try hues 216° and 276°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(246, 52%, 23%) in CSS?
As HSL: color: hsl(246, 52%, 23%); — As HEX: color: #221C59; — As RGB: color: rgb(34, 28, 89); — Tailwind CSS: bg-[hsl(246,52%,23%)] — CSS variable: --color-primary: hsl(246, 52%, 23%);