HSL(230, 61%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(230,61%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(230, 61%, 42%) | color: hsl(230, 61%, 42%) | |
| HEX | #2A40AC | color: #2A40AC | |
| RGB | rgb(42, 64, 172) | color: rgb(42, 64, 172) | |
| CMYK | cmyk(76%, 63%, 0%, 33%) | — | |
| HSV | hsv(230, 76%, 67%) | — | |
| HWB | hwb(230 16% 33%) | color: hwb(230 16% 33%) | |
| OKLCH | oklch(0.4267 0.1738 268.77) | color: oklch(0.4267 0.1738 268.77) | |
| Lab | lab(32.12 30.46 -60.11) | color: lab(32.12 30.46 -60.11) | |
| LCH | lch(32.12 67.39 296.87) | color: lch(32.12 67.39 296.87) |
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)
#343492 — rgb(52, 52, 146)
Deuteranopia (Green-blind)
#32318C — rgb(50, 49, 140)
Tritanopia (Blue-blind)
#2B7D79 — rgb(43, 125, 121)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(230, 61%, 42%);
text
color: hsl(230, 61%, 42%);
border
border: 2px solid hsl(230, 61%, 42%);
gradient light
background: linear-gradient(to right, hsl(230, 61%, 62%), hsl(230, 61%, 42%));
gradient dark
background: linear-gradient(to right, hsl(230, 61%, 42%), hsl(230, 61%, 22%))
hex
background-color: #2A40AC;
tailwind
bg-[hsl(230,61%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(230, 61%, 42%, 0.4);
css variable
--color-primary: hsl(230, 61%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(230, 61%, 42%)?
HEX: #2A40AC | RGB: rgb(42, 64, 172) | CMYK: 76%, 63%, 0%, 33% | HSV: 230°, 76%, 67%. Copy any format from the conversion table above.
What colors go well with #2A40AC?
The complementary color is HSL(50, 61%, 42%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(230, 61%, 42%) in CSS?
As HSL: color: hsl(230, 61%, 42%); — As HEX: color: #2A40AC; — As RGB: color: rgb(42, 64, 172); — Tailwind CSS: bg-[hsl(230,61%,42%)] — CSS variable: --color-primary: hsl(230, 61%, 42%);