#3A1062 CSS Color Code

#3A1062

Color Values & Formats

Using is just one of many ways to represent this color in CSS. Below are the various color codes you can use:

HEX
#3a1062
HEX Upper
#3A1062
RGB
rgb(58, 16, 98)
RGBA
rgba(58, 16, 98, 1)
HSL
hsl(271, 72%, 22%)
HSLA
hsla(271, 72%, 22%, 1)
HWB
hwb(271 6% 62%)
CIELAB
lab(16.27 36.77 -39.59)
CIELCH
lch(16.27 54.03 312.88)
OKLab
oklab(0.295 0.07 -0.113)
OKLCH
oklch(0.295 0.133 301.67)

UI Component Preview

See how this color behaves when used as text, background, or outline borders in a user interface.

On White Background

Legibility Test

Five crazy hex codes quickly mixed bright aqua text for web layout pages.

On Dark Background

Legibility Test

Five crazy hex codes quickly mixed bright aqua text for web layout pages.

Interactive Buttons
Border & Stroke
Border Example

Tints

Lighter variations generated by blending the color with white (#ffffff).

Shades

Darker variations generated by blending the color with black (#000000).

Complementary Color

The color directly opposite on the HSL color wheel (shifted 180°).