HSL(233, 40%, 38%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,40%,38%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 40%, 38%) | color: hsl(233, 40%, 38%) | |
| HEX | #3A4388 | color: #3A4388 | |
| RGB | rgb(58, 67, 136) | color: rgb(58, 67, 136) | |
| CMYK | cmyk(57%, 51%, 0%, 47%) | — | |
| HSV | hsv(233, 57%, 53%) | — | |
| HWB | hwb(233 23% 47%) | color: hwb(233 23% 47%) | |
| OKLCH | oklch(0.4128 0.1142 274.68) | color: oklch(0.4128 0.1142 274.68) | |
| Lab | lab(31.09 17.9 -39.87) | color: lab(31.09 17.9 -39.87) | |
| LCH | lch(31.09 43.7 294.18) | color: lch(31.09 43.7 294.18) |
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)
#3E3E77 — rgb(62, 62, 119)
Deuteranopia (Green-blind)
#3D3D73 — rgb(61, 61, 115)
Tritanopia (Blue-blind)
#3A6A67 — rgb(58, 106, 103)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 40%, 38%);
text
color: hsl(233, 40%, 38%);
border
border: 2px solid hsl(233, 40%, 38%);
gradient light
background: linear-gradient(to right, hsl(233, 40%, 58%), hsl(233, 40%, 38%));
gradient dark
background: linear-gradient(to right, hsl(233, 40%, 38%), hsl(233, 40%, 18%))
hex
background-color: #3A4388;
tailwind
bg-[hsl(233,40%,38%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 40%, 38%, 0.4);
css variable
--color-primary: hsl(233, 40%, 38%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 40%, 38%)?
HEX: #3A4388 | RGB: rgb(58, 67, 136) | CMYK: 57%, 51%, 0%, 47% | HSV: 233°, 57%, 53%. Copy any format from the conversion table above.
What colors go well with #3A4388?
The complementary color is HSL(53, 40%, 38%). 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, 40%, 38%) in CSS?
As HSL: color: hsl(233, 40%, 38%); — As HEX: color: #3A4388; — As RGB: color: rgb(58, 67, 136); — Tailwind CSS: bg-[hsl(233,40%,38%)] — CSS variable: --color-primary: hsl(233, 40%, 38%);