CSS Named Color
Copy-ready color values
HEX
#000080RGB
rgb(0, 0, 128)HSL
hsl(240, 100%, 25%)HSV
hsv(240, 100%, 50%)CMYK approx.
cmyk(100, 100, 0, 50)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #000080 | |
| RGB | rgb(0, 0, 128) | |
| HSL | hsl(240, 100%, 25%) | |
| HSV | hsv(240, 100%, 50%) | |
| CMYK approx. | cmyk(100, 100, 0, 50) | |
| CSS keyword | navy |
Contrast and classification
DarkLightness16.01:1Contrast with white1.31:1Contrast with blackBlue / CyanColor family
Shade and tint preview
White 10%#1A1A8D
White 30%#4D4DA6
White 70%#B3B3D9
White 90%#E6E6F2
Black 10%#000073
Black 30%#00005A
Black 70%#000026
Black 90%#00000D
Harmony palettes
Complementary
#FFFF7F#FFFF9EAnalogous
#000071#000F71Triadic
#008000#800000Split complementary
#FFFF96#D1D168Using Navy
Navy works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.
CSS, SCSS, and Tailwind examples
:root {
--color-navy: #000080;
}
.button-primary {
background: var(--color-navy);
color: #ffffff;
}
$navy: #000080;
// Tailwind arbitrary value
class="bg-[#000080] text-white"