HSL(226, 80%, 30%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(226,80%,30%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(226, 80%, 30%) | color: hsl(226, 80%, 30%) | |
| HEX | #0F2C8A | color: #0F2C8A | |
| RGB | rgb(15, 44, 138) | color: rgb(15, 44, 138) | |
| CMYK | cmyk(89%, 68%, 0%, 46%) | — | |
| HSV | hsv(226, 89%, 54%) | — | |
| HWB | hwb(226 6% 46%) | color: hwb(226 6% 46%) | |
| OKLCH | oklch(0.3453 0.1592 265.06) | color: oklch(0.3453 0.1592 265.06) | |
| Lab | lab(22.78 28.35 -54.72) | color: lab(22.78 28.35 -54.72) | |
| LCH | lch(22.78 61.63 297.39) | color: lch(22.78 61.63 297.39) |
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)
#1C1C73 — rgb(28, 28, 115)
Deuteranopia (Green-blind)
#1A186E — rgb(26, 24, 110)
Tritanopia (Blue-blind)
#10615D — rgb(16, 97, 93)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(226, 80%, 30%);
text
color: hsl(226, 80%, 30%);
border
border: 2px solid hsl(226, 80%, 30%);
gradient light
background: linear-gradient(to right, hsl(226, 80%, 50%), hsl(226, 80%, 30%));
gradient dark
background: linear-gradient(to right, hsl(226, 80%, 30%), hsl(226, 80%, 10%))
hex
background-color: #0F2C8A;
tailwind
bg-[hsl(226,80%,30%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(226, 80%, 30%, 0.4);
css variable
--color-primary: hsl(226, 80%, 30%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(226, 80%, 30%)?
HEX: #0F2C8A | RGB: rgb(15, 44, 138) | CMYK: 89%, 68%, 0%, 46% | HSV: 226°, 89%, 54%. Copy any format from the conversion table above.
What colors go well with #0F2C8A?
The complementary color is HSL(46, 80%, 30%). For a triadic harmony, use hues 226°, 346°, and 106°. For analogous combinations, try hues 196° and 256°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(226, 80%, 30%) in CSS?
As HSL: color: hsl(226, 80%, 30%); — As HEX: color: #0F2C8A; — As RGB: color: rgb(15, 44, 138); — Tailwind CSS: bg-[hsl(226,80%,30%)] — CSS variable: --color-primary: hsl(226, 80%, 30%);