HSL(238, 30%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(238,30%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(238, 30%, 37%) | color: hsl(238, 30%, 37%) | |
| HEX | #42447B | color: #42447B | |
| RGB | rgb(66, 68, 123) | color: rgb(66, 68, 123) | |
| CMYK | cmyk(46%, 45%, 0%, 52%) | — | |
| HSV | hsv(238, 46%, 48%) | — | |
| HWB | hwb(238 26% 52%) | color: hwb(238 26% 52%) | |
| OKLCH | oklch(0.4123 0.0909 280.05) | color: oklch(0.4123 0.0909 280.05) | |
| Lab | lab(31.17 14.79 -31.64) | color: lab(31.17 14.79 -31.64) | |
| LCH | lch(31.17 34.93 295.05) | color: lch(31.17 34.93 295.05) |
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)
#43436E — rgb(67, 67, 110)
Deuteranopia (Green-blind)
#43436B — rgb(67, 67, 107)
Tritanopia (Blue-blind)
#426361 — rgb(66, 99, 97)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(238, 30%, 37%);
text
color: hsl(238, 30%, 37%);
border
border: 2px solid hsl(238, 30%, 37%);
gradient light
background: linear-gradient(to right, hsl(238, 30%, 57%), hsl(238, 30%, 37%));
gradient dark
background: linear-gradient(to right, hsl(238, 30%, 37%), hsl(238, 30%, 17%))
hex
background-color: #42447B;
tailwind
bg-[hsl(238,30%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(238, 30%, 37%, 0.4);
css variable
--color-primary: hsl(238, 30%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(238, 30%, 37%)?
HEX: #42447B | RGB: rgb(66, 68, 123) | CMYK: 46%, 45%, 0%, 52% | HSV: 238°, 46%, 48%. Copy any format from the conversion table above.
What colors go well with #42447B?
The complementary color is HSL(58, 30%, 37%). 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%, 37%) in CSS?
As HSL: color: hsl(238, 30%, 37%); — As HEX: color: #42447B; — As RGB: color: rgb(66, 68, 123); — Tailwind CSS: bg-[hsl(238,30%,37%)] — CSS variable: --color-primary: hsl(238, 30%, 37%);