HSL(231, 80%, 24%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,80%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 80%, 24%) | color: hsl(231, 80%, 24%) | |
| HEX | #0C1B6E | color: #0C1B6E | |
| RGB | rgb(12, 27, 110) | color: rgb(12, 27, 110) | |
| CMYK | cmyk(89%, 75%, 0%, 57%) | — | |
| HSV | hsv(231, 89%, 43%) | — | |
| HWB | hwb(231 5% 57%) | color: hwb(231 5% 57%) | |
| OKLCH | oklch(0.2825 0.1423 267.01) | color: oklch(0.2825 0.1423 267.01) | |
| Lab | lab(15.42 28.61 -49.02) | color: lab(15.42 28.61 -49.02) | |
| LCH | lch(15.42 56.76 300.27) | color: lch(15.42 56.76 300.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)
#12135A — rgb(18, 19, 90)
Deuteranopia (Green-blind)
#121155 — rgb(18, 17, 85)
Tritanopia (Blue-blind)
#0D4A47 — rgb(13, 74, 71)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 80%, 24%);
text
color: hsl(231, 80%, 24%);
border
border: 2px solid hsl(231, 80%, 24%);
gradient light
background: linear-gradient(to right, hsl(231, 80%, 44%), hsl(231, 80%, 24%));
gradient dark
background: linear-gradient(to right, hsl(231, 80%, 24%), hsl(231, 80%, 4%))
hex
background-color: #0C1B6E;
tailwind
bg-[hsl(231,80%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 80%, 24%, 0.4);
css variable
--color-primary: hsl(231, 80%, 24%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 80%, 24%)?
HEX: #0C1B6E | RGB: rgb(12, 27, 110) | CMYK: 89%, 75%, 0%, 57% | HSV: 231°, 89%, 43%. Copy any format from the conversion table above.
What colors go well with #0C1B6E?
The complementary color is HSL(51, 80%, 24%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 80%, 24%) in CSS?
As HSL: color: hsl(231, 80%, 24%); — As HEX: color: #0C1B6E; — As RGB: color: rgb(12, 27, 110); — Tailwind CSS: bg-[hsl(231,80%,24%)] — CSS variable: --color-primary: hsl(231, 80%, 24%);