Skip to content

#381f45

a deep, soft violet · warm · closest name: midnightblue

RGB
56, 31, 69
HSL
280°, 38%, 20%
CMYK
19, 55, 0, 73
Luminance
0.0225

Every format

HEX#381f45
RGBrgb(56, 31, 69)
HSLhsl(280, 38%, 20%)
CMYKcmyk(19%, 55%, 0%, 73%)
LABlab(16.8 20.2 -19.2)
LCHlch(16.8 27.9 316.5)
OKLCHoklch(0.291 0.073 313.0)

Copy-ready code

/* CSS */
color: #381f45;
background-color: #381f45;
/* Tailwind (arbitrary) */
class="text-[#381f45] bg-[#381f45]"
/* SCSS */
$brand: #381f45;
/* SwiftUI */
Color(red: 0.220, green: 0.122, blue: 0.271)
/* Android */
Color.parseColor("#381f45")

Accessibility — WCAG contrast

Aa
#381f45 on white: 14.48:1
AA ✓ pass · AA-large · AAA
Aa
#381f45 on black: 1.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red22.0%
Green12.2%
Blue27.1%

CMYK percentages

Cyan18.8%
Magenta55.1%
Yellow0.0%
Key (black)72.9%

Color previews

#381f45 text on a black background

contrast 1.45:1

Card sample

#381f45 text on a white background

contrast 14.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #381f45;
Background color
Panel with #381f45 background
background-color: #381f45;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #381f45;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(56, 31, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(56, 31, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #381f45;
background: linear-gradient(135deg, #381f45, #451F39);

Monochromatic scale

Palettes built from #381f45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #381f45 in the Color Lab