#330F52#330F52
#330F52 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.114 H 304.0°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).
Color values
| HEX | #330F52 |
|---|---|
| RGB | rgb(51, 15, 82) |
| HSL | hsl(272, 69%, 19%) |
| HSV | hsv(272, 82%, 32%) |
| CMYK | cmyk(37.8%, 81.7%, 0%, 67.8%) |
| CIE-LAB | lab(13.56, 31.63, -33.29) |
| CIE-LCH | lch(13.56, 45.91, 313.54°) |
| OKLab | oklab(26.91% 0.0639 -0.0948) |
| OKLCH | oklch(26.91% 0.114 304) |
| XYZ | xyz(3.0587, 1.6547, 8.1392) |
| Luminance | 0.0165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.36
Dark Violet
#34013F
ΔE00 4.94
Dark Purple
#35063E
ΔE00 5.21
Deep Purple
#36013F
ΔE00 5.24
Midnight Purple
#280137
ΔE00 5.65
Royal Purple (survey)
#4B006E
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#330F52 #2E520F
analogous
#120F52 #330F52 #520F50
triadic
#330F52 #52330F #0F5233
tetradic
#330F52 #52120F #2E520F #0F5052
square
#330F52 #52120F #2E520F #0F5052
split-complementary
#330F52 #50520F #0F5212
monochromatic
#10051A #13061E #330F52 #531886 #7322B9
Accessibility & contrast
On white
15.78
#330F52 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#330F52 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #330F52
15.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##330F52 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##330F52 | 1.00 | 15.78 | 1.33 | 15.78 |
| #FFFFFF | 15.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#2D2030
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #330f52; /* rgb */ color: rgb(51, 15, 82); /* oklch */ color: oklch(26.9% 0.114 304.0);
Tailwind
colors: {
custom: {
50: '#6e5283',
500: '#330f52',
950: '#000000',
},
}SCSS
$custom: #330f52; $custom-light: #6e5283; $custom-dark: #000000;
JSON
{
"hex": "#330f52",
"rgb": {
"r": 51,
"g": 15,
"b": 82
},
"hsl": {
"h": 272.239,
"s": 69.072,
"l": 19.02
},
"oklch": {
"l": 0.26906,
"c": 0.11432,
"h": 304
},
"luminance": 0.01655
}Semantic roles & 50–950 ramp
primary
#330F52
secondary
#5B8C31
accent
#EC3C8D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C