Skip to content

#280c39

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

RGB
40, 12, 57
HSL
277°, 65%, 14%
CMYK
30, 79, 0, 78
Luminance
0.0101

Every format

HEX#280c39
RGBrgb(40, 12, 57)
HSLhsl(277, 65%, 14%)
CMYKcmyk(30%, 79%, 0%, 78%)
LABlab(9.1 23.8 -23.1)
LCHlch(9.1 33.2 315.9)
OKLCHoklch(0.227 0.085 309.8)

Copy-ready code

/* CSS */
color: #280c39;
background-color: #280c39;
/* Tailwind (arbitrary) */
class="text-[#280c39] bg-[#280c39]"
/* SCSS */
$brand: #280c39;
/* SwiftUI */
Color(red: 0.157, green: 0.047, blue: 0.224)
/* Android */
Color.parseColor("#280c39")

Accessibility — WCAG contrast

Aa
#280c39 on white: 17.47:1
AA ✓ pass · AA-large · AAA
Aa
#280c39 on black: 1.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green4.7%
Blue22.4%

CMYK percentages

Cyan29.8%
Magenta78.9%
Yellow0.0%
Key (black)77.6%

Color previews

#280c39 text on a black background

contrast 1.20:1

Card sample

#280c39 text on a white background

contrast 17.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #280c39;
Background color
Panel with #280c39 background
background-color: #280c39;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #280c39;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(40, 12, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 12, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #280c39;
background: linear-gradient(135deg, #280c39, #390C2C);

Monochromatic scale

Palettes built from #280c39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #280c39 in the Color Lab