Preview
#1f042f
Family: Purple
Accessibility on this swatch:
Contrast vs white: 18.81:1 · vs black: 1.12:1
HEX
#1f042f
RGB
rgb(31, 4, 47)
RGBA
rgba(31, 4, 47, 1)
HSL
hsl(278, 84%, 10%)
HSV
hsv(278, 91%, 18%)
LAB
lab(5.27% 22.15 -21.95)
LCH
lch(5.27% 31.18 315.26)
OKLAB
oklab(0.1908 0.0531 -0.0642)
OKLCH
oklch(0.1908 0.0833 309.59)
XYZ
xyz(1.12, 0.58, 2.74)
CMYK
cmyk(34%, 91%, 0%, 82%)
CSS
color: #1f042f;
CSS variable
--color-1f042f: #1f042f;
SCSS
$color-1f042f: #1f042f;
Tailwind
violet-900
Export
:root {
--#1f042f-1: #1f042f;
}Imagination, luxury, and wisdom. Frequently used for premium, creative, and tech brands.
Usage examples: primary buttons, chart series, status badges, marketing gradients, and brand accents in the Purple family.