HSL(238, 30%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(238,30%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(238, 30%, 40%) | color: hsl(238, 30%, 40%) | |
| HEX | #474985 | color: #474985 | |
| RGB | rgb(71, 73, 133) | color: rgb(71, 73, 133) | |
| CMYK | cmyk(47%, 45%, 0%, 48%) | — | |
| HSV | hsv(238, 47%, 52%) | — | |
| HWB | hwb(238 28% 48%) | color: hwb(238 28% 48%) | |
| OKLCH | oklch(0.4334 0.0978 280.05) | color: oklch(0.4334 0.0978 280.05) | |
| Lab | lab(33.56 16.07 -34.02) | color: lab(33.56 16.07 -34.02) | |
| LCH | lch(33.56 37.62 295.28) | color: lch(33.56 37.62 295.28) |
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)
#484876 — rgb(72, 72, 118)
Deuteranopia (Green-blind)
#484873 — rgb(72, 72, 115)
Tritanopia (Blue-blind)
#476B69 — rgb(71, 107, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(238, 30%, 40%);
text
color: hsl(238, 30%, 40%);
border
border: 2px solid hsl(238, 30%, 40%);
gradient light
background: linear-gradient(to right, hsl(238, 30%, 60%), hsl(238, 30%, 40%));
gradient dark
background: linear-gradient(to right, hsl(238, 30%, 40%), hsl(238, 30%, 20%))
hex
background-color: #474985;
tailwind
bg-[hsl(238,30%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(238, 30%, 40%, 0.4);
css variable
--color-primary: hsl(238, 30%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(238, 30%, 40%)?
HEX: #474985 | RGB: rgb(71, 73, 133) | CMYK: 47%, 45%, 0%, 48% | HSV: 238°, 47%, 52%. Copy any format from the conversion table above.
What colors go well with #474985?
The complementary color is HSL(58, 30%, 40%). For a triadic harmony, use hues 238°, 358°, and 118°. For analogous combinations, try hues 208° and 268°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(238, 30%, 40%) in CSS?
As HSL: color: hsl(238, 30%, 40%); — As HEX: color: #474985; — As RGB: color: rgb(71, 73, 133); — Tailwind CSS: bg-[hsl(238,30%,40%)] — CSS variable: --color-primary: hsl(238, 30%, 40%);