HSL(251, 52%, 26%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(251,52%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 52%, 26%) | color: hsl(251, 52%, 26%) | |
| HEX | #2C2065 | color: #2C2065 | |
| RGB | rgb(44, 32, 101) | color: rgb(44, 32, 101) | |
| CMYK | cmyk(56%, 68%, 0%, 60%) | — | |
| HSV | hsv(250, 68%, 40%) | — | |
| HWB | hwb(250 13% 60%) | color: hwb(250 13% 60%) | |
| OKLCH | oklch(0.3038 0.1157 285.17) | color: oklch(0.3038 0.1157 285.17) | |
| Lab | lab(17.95 26.15 -38.89) | color: lab(17.95 26.15 -38.89) | |
| LCH | lch(17.95 46.86 303.92) | color: lch(17.95 46.86 303.92) |
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)
#272754 — rgb(39, 39, 84)
Deuteranopia (Green-blind)
#282850 — rgb(40, 40, 80)
Tritanopia (Blue-blind)
#2B4744 — rgb(43, 71, 68)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 52%, 26%);
text
color: hsl(251, 52%, 26%);
border
border: 2px solid hsl(251, 52%, 26%);
gradient light
background: linear-gradient(to right, hsl(251, 52%, 46%), hsl(251, 52%, 26%));
gradient dark
background: linear-gradient(to right, hsl(251, 52%, 26%), hsl(251, 52%, 6%))
hex
background-color: #2C2065;
tailwind
bg-[hsl(251,52%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 52%, 26%, 0.4);
css variable
--color-primary: hsl(251, 52%, 26%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 52%, 26%)?
HEX: #2C2065 | RGB: rgb(44, 32, 101) | CMYK: 56%, 68%, 0%, 60% | HSV: 250°, 68%, 40%. Copy any format from the conversion table above.
What colors go well with #2C2065?
The complementary color is HSL(71, 52%, 26%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 52%, 26%) in CSS?
As HSL: color: hsl(251, 52%, 26%); — As HEX: color: #2C2065; — As RGB: color: rgb(44, 32, 101); — Tailwind CSS: bg-[hsl(251,52%,26%)] — CSS variable: --color-primary: hsl(251, 52%, 26%);