HSL(233, 97%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(233,97%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(233, 97%, 40%) | color: hsl(233, 97%, 40%) | |
| HEX | #031AC9 | color: #031AC9 | |
| RGB | rgb(3, 26, 201) | color: rgb(3, 26, 201) | |
| CMYK | cmyk(99%, 87%, 0%, 21%) | — | |
| HSV | hsv(233, 99%, 79%) | — | |
| HWB | hwb(233 1% 21%) | color: hwb(233 1% 21%) | |
| OKLCH | oklch(0.3935 0.2511 264.51) | color: oklch(0.3935 0.2511 264.51) | |
| Lab | lab(26.66 59.38 -86.34) | color: lab(26.66 59.38 -86.34) | |
| LCH | lch(26.66 104.79 304.52) | color: lch(26.66 104.79 304.52) |
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)
#0D0D9F — rgb(13, 13, 159)
Deuteranopia (Green-blind)
#0C0A95 — rgb(12, 10, 149)
Tritanopia (Blue-blind)
#047D76 — rgb(4, 125, 118)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(233, 97%, 40%);
text
color: hsl(233, 97%, 40%);
border
border: 2px solid hsl(233, 97%, 40%);
gradient light
background: linear-gradient(to right, hsl(233, 97%, 60%), hsl(233, 97%, 40%));
gradient dark
background: linear-gradient(to right, hsl(233, 97%, 40%), hsl(233, 97%, 20%))
hex
background-color: #031AC9;
tailwind
bg-[hsl(233,97%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(233, 97%, 40%, 0.4);
css variable
--color-primary: hsl(233, 97%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(233, 97%, 40%)?
HEX: #031AC9 | RGB: rgb(3, 26, 201) | CMYK: 99%, 87%, 0%, 21% | HSV: 233°, 99%, 79%. Copy any format from the conversion table above.
What colors go well with #031AC9?
The complementary color is HSL(53, 97%, 40%). 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, 97%, 40%) in CSS?
As HSL: color: hsl(233, 97%, 40%); — As HEX: color: #031AC9; — As RGB: color: rgb(3, 26, 201); — Tailwind CSS: bg-[hsl(233,97%,40%)] — CSS variable: --color-primary: hsl(233, 97%, 40%);