HSL(231, 46%, 35%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,46%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 46%, 35%) | color: hsl(231, 46%, 35%) | |
| HEX | #303D82 | color: #303D82 | |
| RGB | rgb(48, 61, 130) | color: rgb(48, 61, 130) | |
| CMYK | cmyk(63%, 53%, 0%, 49%) | — | |
| HSV | hsv(230, 63%, 51%) | — | |
| HWB | hwb(230 19% 49%) | color: hwb(230 19% 49%) | |
| OKLCH | oklch(0.3888 0.1165 271.9) | color: oklch(0.3888 0.1165 271.9) | |
| Lab | lab(28.32 17.71 -40.64) | color: lab(28.32 17.71 -40.64) | |
| LCH | lch(28.32 44.33 293.55) | color: lch(28.32 44.33 293.55) |
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)
#363671 — rgb(54, 54, 113)
Deuteranopia (Green-blind)
#35346D — rgb(53, 52, 109)
Tritanopia (Blue-blind)
#316461 — rgb(49, 100, 97)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 46%, 35%);
text
color: hsl(231, 46%, 35%);
border
border: 2px solid hsl(231, 46%, 35%);
gradient light
background: linear-gradient(to right, hsl(231, 46%, 55%), hsl(231, 46%, 35%));
gradient dark
background: linear-gradient(to right, hsl(231, 46%, 35%), hsl(231, 46%, 15%))
hex
background-color: #303D82;
tailwind
bg-[hsl(231,46%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 46%, 35%, 0.4);
css variable
--color-primary: hsl(231, 46%, 35%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 46%, 35%)?
HEX: #303D82 | RGB: rgb(48, 61, 130) | CMYK: 63%, 53%, 0%, 49% | HSV: 230°, 63%, 51%. Copy any format from the conversion table above.
What colors go well with #303D82?
The complementary color is HSL(51, 46%, 35%). 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, 46%, 35%) in CSS?
As HSL: color: hsl(231, 46%, 35%); — As HEX: color: #303D82; — As RGB: color: rgb(48, 61, 130); — Tailwind CSS: bg-[hsl(231,46%,35%)] — CSS variable: --color-primary: hsl(231, 46%, 35%);