#2F0D4F#2F0D4F
#2F0D4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.112 H 302.4°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F0D4F |
|---|---|
| RGB | rgb(47, 13, 79) |
| HSL | hsl(271, 72%, 18%) |
| HSV | hsv(271, 84%, 31%) |
| CMYK | cmyk(40.5%, 83.5%, 0%, 69%) |
| CIE-LAB | lab(12.33, 30.96, -33.26) |
| CIE-LCH | lch(12.33, 45.44, 312.95°) |
| OKLab | oklab(25.82% 0.0601 -0.0949) |
| OKLCH | oklch(25.82% 0.112 302.4) |
| XYZ | xyz(2.7272, 1.4567, 7.5331) |
| Luminance | 0.0146 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.84
Dark Violet
#34013F
ΔE00 4.84
Dark Purple
#35063E
ΔE00 5.17
Midnight Purple
#280137
ΔE00 5.17
Deep Purple
#36013F
ΔE00 5.20
Very Dark Purple
#2A0134
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F0D4F #2D4F0D
analogous
#0E0D4F #2F0D4F #4F0D4E
triadic
#2F0D4F #4F2F0D #0D4F2F
tetradic
#2F0D4F #4F0E0D #2D4F0D #0D4E4F
square
#2F0D4F #4F0E0D #2D4F0D #0D4E4F
split-complementary
#2F0D4F #4E4F0D #0D4F0E
monochromatic
#10041A #10041A #2F0D4F #4E1684 #6E1EB8
Accessibility & contrast
On white
16.26
#2F0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#2F0D4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F0D4F
16.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F0D4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F0D4F | 1.00 | 16.26 | 1.29 | 16.26 |
| #FFFFFF | 16.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#281E2D
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2f0d4f; /* rgb */ color: rgb(47, 13, 79); /* oklch */ color: oklch(25.8% 0.112 302.4);
Tailwind
colors: {
custom: {
50: '#6b5081',
500: '#2f0d4f',
950: '#000000',
},
}SCSS
$custom: #2f0d4f; $custom-light: #6b5081; $custom-dark: #000000;
JSON
{
"hex": "#2f0d4f",
"rgb": {
"r": 47,
"g": 13,
"b": 79
},
"hsl": {
"h": 270.909,
"s": 71.739,
"l": 18.039
},
"oklch": {
"l": 0.25822,
"c": 0.11234,
"h": 302.4
},
"luminance": 0.01457
}Semantic roles & 50–950 ramp
primary
#2F0D4F
secondary
#5B8A2E
accent
#EE3991
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C