Random Color Generator

#04381f Color

Color Codes
Hex Code #04381f
RGB Code rgb(04, 56, 31)
HSL Code hsl(151, 87%, 12%)

#04381f Color Syntax

rgb()

 rgb(Red, Green, Blue);
 rgba(Red, Green, Blue, Alpha);

 main {
    background-color: rgb(04, 56, 31);
   }

R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.

hsl()

 hsl(hue saturation lightness);
 hsl(hue saturation lightness / alpha);

 div {
  background-color: hsl(151, 87%, 12%);
  }

Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.

Lighter and darker colors of #04381f

RGB Code Hex Code Preview
rgb(04, 56, 31, 10%) #04381f1a  
rgb(04, 56, 31, 20%) #04381f33  
rgb(04, 56, 31, 40%) #04381f4C  
rgb(04, 56, 31, 60%) #04381f99  
rgb(04, 56, 31, 80%) #04381fCC  
rgb(04, 56, 31, 100%) #04381fFF  

Saturated and desaturated colors of #04381f

HSL Code Preview
hsl(151, 10%, 12%)  
hsl(151, 20%, 12%)  
hsl(151, 40%, 12%)  
hsl(151, 60%, 12%)  
hsl(151, 80%, 12%)  
hsl(151, 100%, 12%)  

#04381f Color Usage In CSS

 body {
    color: #04381f;
    }
 p {
    color: rgb(04, 56, 31);
    }
 header {
    border-bottom:1px solid #04381f;
    }
Recent Random Colors