HSL(231, 65%, 46%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,65%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 65%, 46%) | color: hsl(231, 65%, 46%) | |
| HEX | #2940C2 | color: #2940C2 | |
| RGB | rgb(41, 64, 194) | color: rgb(41, 64, 194) | |
| CMYK | cmyk(79%, 67%, 0%, 24%) | — | |
| HSV | hsv(231, 79%, 76%) | — | |
| HWB | hwb(231 16% 24%) | color: hwb(231 16% 24%) | |
| OKLCH | oklch(0.4468 0.2027 268.39) | color: oklch(0.4468 0.2027 268.39) | |
| Lab | lab(34.05 38.42 -69.96) | color: lab(34.05 38.42 -69.96) | |
| LCH | lch(34.05 79.82 298.77) | color: lch(34.05 79.82 298.77) |
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)
#3333A3 — rgb(51, 51, 163)
Deuteranopia (Green-blind)
#32309B — rgb(50, 48, 155)
Tritanopia (Blue-blind)
#2A8A84 — rgb(42, 138, 132)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 65%, 46%);
text
color: hsl(231, 65%, 46%);
border
border: 2px solid hsl(231, 65%, 46%);
gradient light
background: linear-gradient(to right, hsl(231, 65%, 66%), hsl(231, 65%, 46%));
gradient dark
background: linear-gradient(to right, hsl(231, 65%, 46%), hsl(231, 65%, 26%))
hex
background-color: #2940C2;
tailwind
bg-[hsl(231,65%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 65%, 46%, 0.4);
css variable
--color-primary: hsl(231, 65%, 46%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 65%, 46%)?
HEX: #2940C2 | RGB: rgb(41, 64, 194) | CMYK: 79%, 67%, 0%, 24% | HSV: 231°, 79%, 76%. Copy any format from the conversion table above.
What colors go well with #2940C2?
The complementary color is HSL(51, 65%, 46%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 65%, 46%) in CSS?
As HSL: color: hsl(231, 65%, 46%); — As HEX: color: #2940C2; — As RGB: color: rgb(41, 64, 194); — Tailwind CSS: bg-[hsl(231,65%,46%)] — CSS variable: --color-primary: hsl(231, 65%, 46%);