HSL(233, 36%, 31%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,36%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 36%, 31%) | color: hsl(233, 36%, 31%) | |
| HEX | #33396C | color: #33396C | |
| RGB | rgb(51, 57, 108) | color: rgb(51, 57, 108) | |
| CMYK | cmyk(53%, 47%, 0%, 58%) | — | |
| HSV | hsv(234, 53%, 42%) | — | |
| HWB | hwb(234 20% 58%) | color: hwb(234 20% 58%) | |
| OKLCH | oklch(0.3662 0.0874 276.14) | color: oklch(0.3662 0.0874 276.14) | |
| Lab | lab(25.9 13.2 -30.6) | color: lab(25.9 13.2 -30.6) | |
| LCH | lch(25.9 33.33 293.33) | color: lch(25.9 33.33 293.33) |
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)
#363660 — rgb(54, 54, 96)
Deuteranopia (Green-blind)
#35355D — rgb(53, 53, 93)
Tritanopia (Blue-blind)
#335654 — rgb(51, 86, 84)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 36%, 31%);
text
color: hsl(233, 36%, 31%);
border
border: 2px solid hsl(233, 36%, 31%);
gradient light
background: linear-gradient(to right, hsl(233, 36%, 51%), hsl(233, 36%, 31%));
gradient dark
background: linear-gradient(to right, hsl(233, 36%, 31%), hsl(233, 36%, 11%))
hex
background-color: #33396C;
tailwind
bg-[hsl(233,36%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 36%, 31%, 0.4);
css variable
--color-primary: hsl(233, 36%, 31%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 36%, 31%)?
HEX: #33396C | RGB: rgb(51, 57, 108) | CMYK: 53%, 47%, 0%, 58% | HSV: 234°, 53%, 42%. Copy any format from the conversion table above.
What colors go well with #33396C?
The complementary color is HSL(53, 36%, 31%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(233, 36%, 31%) in CSS?
As HSL: color: hsl(233, 36%, 31%); — As HEX: color: #33396C; — As RGB: color: rgb(51, 57, 108); — Tailwind CSS: bg-[hsl(233,36%,31%)] — CSS variable: --color-primary: hsl(233, 36%, 31%);