#301A2D CSS Color Code

#301A2D

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
#301a2d
HEX Upper
#301A2D
RGB
rgb(48, 26, 45)
RGBA
rgba(48, 26, 45, 1)
HSL
hsl(308, 30%, 15%)
HSLA
hsla(308, 30%, 15%, 1)
HWB
hwb(308 10% 81%)
CIELAB
lab(12.96 14.6 -8.2)
CIELCH
lch(12.96 16.75 330.7)
OKLab
oklab(0.256 0.041 -0.022)
OKLCH
oklch(0.256 0.047 331.87)

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°).