HSL(229, 87%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(229,87%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(229, 87%, 37%) | color: hsl(229, 87%, 37%) | |
| HEX | #0C2AB0 | color: #0C2AB0 | |
| RGB | rgb(12, 42, 176) | color: rgb(12, 42, 176) | |
| CMYK | cmyk(93%, 76%, 0%, 31%) | — | |
| HSV | hsv(229, 93%, 69%) | — | |
| HWB | hwb(229 5% 31%) | color: hwb(229 5% 31%) | |
| OKLCH | oklch(0.3831 0.2097 265.2) | color: oklch(0.3831 0.2097 265.2) | |
| Lab | lab(26.35 43.75 -72.03) | color: lab(26.35 43.75 -72.03) | |
| LCH | lch(26.35 84.28 301.27) | color: lch(26.35 84.28 301.27) |
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)
#191990 — rgb(25, 25, 144)
Deuteranopia (Green-blind)
#171588 — rgb(23, 21, 136)
Tritanopia (Blue-blind)
#0E7670 — rgb(14, 118, 112)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(229, 87%, 37%);
text
color: hsl(229, 87%, 37%);
border
border: 2px solid hsl(229, 87%, 37%);
gradient light
background: linear-gradient(to right, hsl(229, 87%, 57%), hsl(229, 87%, 37%));
gradient dark
background: linear-gradient(to right, hsl(229, 87%, 37%), hsl(229, 87%, 17%))
hex
background-color: #0C2AB0;
tailwind
bg-[hsl(229,87%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(229, 87%, 37%, 0.4);
css variable
--color-primary: hsl(229, 87%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(229, 87%, 37%)?
HEX: #0C2AB0 | RGB: rgb(12, 42, 176) | CMYK: 93%, 76%, 0%, 31% | HSV: 229°, 93%, 69%. Copy any format from the conversion table above.
What colors go well with #0C2AB0?
The complementary color is HSL(49, 87%, 37%). For a triadic harmony, use hues 229°, 349°, and 109°. For analogous combinations, try hues 199° and 259°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(229, 87%, 37%) in CSS?
As HSL: color: hsl(229, 87%, 37%); — As HEX: color: #0C2AB0; — As RGB: color: rgb(12, 42, 176); — Tailwind CSS: bg-[hsl(229,87%,37%)] — CSS variable: --color-primary: hsl(229, 87%, 37%);