HSL(233, 31%, 51%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,31%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 31%, 51%) | color: hsl(233, 31%, 51%) | |
| HEX | #5B64A9 | color: #5B64A9 | |
| RGB | rgb(91, 100, 169) | color: rgb(91, 100, 169) | |
| CMYK | cmyk(46%, 41%, 0%, 34%) | — | |
| HSV | hsv(233, 46%, 66%) | — | |
| HWB | hwb(233 36% 34%) | color: hwb(233 36% 34%) | |
| OKLCH | oklch(0.5275 0.1086 276.39) | color: oklch(0.5275 0.1086 276.39) | |
| Lab | lab(44.52 15.39 -38.2) | color: lab(44.52 15.39 -38.2) | |
| LCH | lch(44.52 41.18 291.94) | color: lch(44.52 41.18 291.94) |
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)
#5F5F98 — rgb(95, 95, 152)
Deuteranopia (Green-blind)
#5E5E94 — rgb(94, 94, 148)
Tritanopia (Blue-blind)
#5B8B88 — rgb(91, 139, 136)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 31%, 51%);
text
color: hsl(233, 31%, 51%);
border
border: 2px solid hsl(233, 31%, 51%);
gradient light
background: linear-gradient(to right, hsl(233, 31%, 71%), hsl(233, 31%, 51%));
gradient dark
background: linear-gradient(to right, hsl(233, 31%, 51%), hsl(233, 31%, 31%))
hex
background-color: #5B64A9;
tailwind
bg-[hsl(233,31%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 31%, 51%, 0.4);
css variable
--color-primary: hsl(233, 31%, 51%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 31%, 51%)?
HEX: #5B64A9 | RGB: rgb(91, 100, 169) | CMYK: 46%, 41%, 0%, 34% | HSV: 233°, 46%, 66%. Copy any format from the conversion table above.
What colors go well with #5B64A9?
The complementary color is HSL(53, 31%, 51%). 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, 31%, 51%) in CSS?
As HSL: color: hsl(233, 31%, 51%); — As HEX: color: #5B64A9; — As RGB: color: rgb(91, 100, 169); — Tailwind CSS: bg-[hsl(233,31%,51%)] — CSS variable: --color-primary: hsl(233, 31%, 51%);