HSL(246, 40%, 26%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(246,40%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(246, 40%, 26%) | color: hsl(246, 40%, 26%) | |
| HEX | #2D285D | color: #2D285D | |
| RGB | rgb(45, 40, 93) | color: rgb(45, 40, 93) | |
| CMYK | cmyk(52%, 57%, 0%, 64%) | — | |
| HSV | hsv(246, 57%, 36%) | — | |
| HWB | hwb(246 15% 64%) | color: hwb(246 15% 64%) | |
| OKLCH | oklch(0.3134 0.0914 284.07) | color: oklch(0.3134 0.0914 284.07) | |
| Lab | lab(19.5 18.21 -31.11) | color: lab(19.5 18.21 -31.11) | |
| LCH | lch(19.5 36.05 300.34) | color: lch(19.5 36.05 300.34) |
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)
#2B2B50 — rgb(43, 43, 80)
Deuteranopia (Green-blind)
#2B2C4D — rgb(43, 44, 77)
Tritanopia (Blue-blind)
#2D4644 — rgb(45, 70, 68)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(246, 40%, 26%);
text
color: hsl(246, 40%, 26%);
border
border: 2px solid hsl(246, 40%, 26%);
gradient light
background: linear-gradient(to right, hsl(246, 40%, 46%), hsl(246, 40%, 26%));
gradient dark
background: linear-gradient(to right, hsl(246, 40%, 26%), hsl(246, 40%, 6%))
hex
background-color: #2D285D;
tailwind
bg-[hsl(246,40%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(246, 40%, 26%, 0.4);
css variable
--color-primary: hsl(246, 40%, 26%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(246, 40%, 26%)?
HEX: #2D285D | RGB: rgb(45, 40, 93) | CMYK: 52%, 57%, 0%, 64% | HSV: 246°, 57%, 36%. Copy any format from the conversion table above.
What colors go well with #2D285D?
The complementary color is HSL(66, 40%, 26%). 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, 40%, 26%) in CSS?
As HSL: color: hsl(246, 40%, 26%); — As HEX: color: #2D285D; — As RGB: color: rgb(45, 40, 93); — Tailwind CSS: bg-[hsl(246,40%,26%)] — CSS variable: --color-primary: hsl(246, 40%, 26%);