HSL(238, 67%, 46%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(238,67%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(238, 67%, 46%) | color: hsl(238, 67%, 46%) | |
| HEX | #272CC4 | color: #272CC4 | |
| RGB | rgb(39, 44, 196) | color: rgb(39, 44, 196) | |
| CMYK | cmyk(80%, 78%, 0%, 23%) | — | |
| HSV | hsv(238, 80%, 77%) | — | |
| HWB | hwb(238 15% 23%) | color: hwb(238 15% 23%) | |
| OKLCH | oklch(0.4178 0.2256 269.99) | color: oklch(0.4178 0.2256 269.99) | |
| Lab | lab(29.95 50.64 -77.9) | color: lab(29.95 50.64 -77.9) | |
| LCH | lch(29.95 92.91 303.03) | color: lch(29.95 92.91 303.03) |
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)
#29299F — rgb(41, 41, 159)
Deuteranopia (Green-blind)
#292996 — rgb(41, 41, 150)
Tritanopia (Blue-blind)
#27827C — rgb(39, 130, 124)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(238, 67%, 46%);
text
color: hsl(238, 67%, 46%);
border
border: 2px solid hsl(238, 67%, 46%);
gradient light
background: linear-gradient(to right, hsl(238, 67%, 66%), hsl(238, 67%, 46%));
gradient dark
background: linear-gradient(to right, hsl(238, 67%, 46%), hsl(238, 67%, 26%))
hex
background-color: #272CC4;
tailwind
bg-[hsl(238,67%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(238, 67%, 46%, 0.4);
css variable
--color-primary: hsl(238, 67%, 46%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(238, 67%, 46%)?
HEX: #272CC4 | RGB: rgb(39, 44, 196) | CMYK: 80%, 78%, 0%, 23% | HSV: 238°, 80%, 77%. Copy any format from the conversion table above.
What colors go well with #272CC4?
The complementary color is HSL(58, 67%, 46%). 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, 67%, 46%) in CSS?
As HSL: color: hsl(238, 67%, 46%); — As HEX: color: #272CC4; — As RGB: color: rgb(39, 44, 196); — Tailwind CSS: bg-[hsl(238,67%,46%)] — CSS variable: --color-primary: hsl(238, 67%, 46%);