#312D21 CSS Color Code

#312D21

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
#312d21
HEX Upper
#312D21
RGB
rgb(49, 45, 33)
RGBA
rgba(49, 45, 33, 1)
HSL
hsl(45, 20%, 16%)
HSLA
hsla(45, 20%, 16%, 1)
HWB
hwb(45 13% 81%)
CIELAB
lab(18.54 -0.58 8.44)
CIELCH
lch(18.54 8.46 93.95)
OKLab
oklab(0.298 -0.001 0.021)
OKLCH
oklch(0.298 0.021 91.81)

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