#330F4F#330F4F
#330F4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.111 H 305.6°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).
Color values
| HEX | #330F4F |
|---|---|
| RGB | rgb(51, 15, 79) |
| HSL | hsl(274, 68%, 18%) |
| HSV | hsv(274, 81%, 31%) |
| CMYK | cmyk(35.4%, 81%, 0%, 69%) |
| CIE-LAB | lab(13.29, 30.82, -31.67) |
| CIE-LCH | lch(13.29, 44.19, 314.23°) |
| OKLab | oklab(26.63% 0.0646 -0.0901) |
| OKLCH | oklch(26.63% 0.111 305.6) |
| XYZ | xyz(2.9470, 1.6100, 7.5511) |
| Luminance | 0.0161 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Violet
#34013F
ΔE00 4.39
Dark Purple
#35063E
ΔE00 4.57
Deep Purple
#36013F
ΔE00 4.69
Dark Indigo
#1F0954
ΔE00 4.82
Midnight Purple
#280137
ΔE00 5.10
Very Dark Purple
#2A0134
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#330F4F #2B4F0F
analogous
#130F4F #330F4F #4F0F4B
triadic
#330F4F #4F330F #0F4F33
tetradic
#330F4F #4F130F #2B4F0F #0F4B4F
square
#330F4F #4F130F #2B4F0F #0F4B4F
split-complementary
#330F4F #4B4F0F #0F4F13
monochromatic
#11051A #12051C #330F4F #541982 #7523B6
Accessibility & contrast
On white
15.89
#330F4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.32
#330F4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #330F4F
15.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##330F4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##330F4F | 1.00 | 15.89 | 1.32 | 15.89 |
| #FFFFFF | 15.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2E1F2E
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #330f4f; /* rgb */ color: rgb(51, 15, 79); /* oklch */ color: oklch(26.6% 0.111 305.6);
Tailwind
colors: {
custom: {
50: '#6e5181',
500: '#330f4f',
950: '#000000',
},
}SCSS
$custom: #330f4f; $custom-light: #6e5181; $custom-dark: #000000;
JSON
{
"hex": "#330f4f",
"rgb": {
"r": 51,
"g": 15,
"b": 79
},
"hsl": {
"h": 273.75,
"s": 68.085,
"l": 18.431
},
"oklch": {
"l": 0.26632,
"c": 0.11083,
"h": 305.6
},
"luminance": 0.0161
}Semantic roles & 50–950 ramp
primary
#330F4F
secondary
#578931
accent
#EB3D89
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C