#2F0C4F#2F0C4F
#2F0C4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.114 H 302.6°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2F0C4F |
|---|---|
| RGB | rgb(47, 12, 79) |
| HSL | hsl(271, 74%, 18%) |
| HSV | hsv(271, 85%, 31%) |
| CMYK | cmyk(40.5%, 84.8%, 0%, 69%) |
| CIE-LAB | lab(12.17, 31.43, -33.52) |
| CIE-LCH | lch(12.17, 45.95, 313.15°) |
| OKLab | oklab(25.71% 0.0611 -0.0957) |
| OKLCH | oklch(25.71% 0.114 302.6) |
| XYZ | xyz(2.7147, 1.4318, 7.5290) |
| Luminance | 0.0143 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.80
Dark Violet
#34013F
ΔE00 4.77
Midnight Purple
#280137
ΔE00 5.13
Deep Purple
#36013F
ΔE00 5.14
Dark Purple
#35063E
ΔE00 5.15
Very Dark Purple
#2A0134
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F0C4F #2C4F0C
analogous
#0D0C4F #2F0C4F #4F0C4D
triadic
#2F0C4F #4F2F0C #0C4F2F
tetradic
#2F0C4F #4F0D0C #2C4F0C #0C4D4F
square
#2F0C4F #4F0D0C #2C4F0C #0C4D4F
split-complementary
#2F0C4F #4D4F0C #0C4F0D
monochromatic
#10041B #10041B #2F0C4F #4F1484 #6E1CB9
Accessibility & contrast
On white
16.32
#2F0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#2F0C4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F0C4F
16.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F0C4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F0C4F | 1.00 | 16.32 | 1.29 | 16.32 |
| #FFFFFF | 16.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#281E2D
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2f0c4f; /* rgb */ color: rgb(47, 12, 79); /* oklch */ color: oklch(25.7% 0.114 302.6);
Tailwind
colors: {
custom: {
50: '#6c4f81',
500: '#2f0c4f',
950: '#000000',
},
}SCSS
$custom: #2f0c4f; $custom-light: #6c4f81; $custom-dark: #000000;
JSON
{
"hex": "#2f0c4f",
"rgb": {
"r": 47,
"g": 12,
"b": 79
},
"hsl": {
"h": 271.343,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.25709,
"c": 0.11352,
"h": 302.6
},
"luminance": 0.01432
}Semantic roles & 50–950 ramp
primary
#2F0C4F
secondary
#598B2C
accent
#F03890
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C