#330F4A#330F4A
#330F4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.105 H 308.7°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).
Color values
| HEX | #330F4A |
|---|---|
| RGB | rgb(51, 15, 74) |
| HSL | hsl(277, 66%, 17%) |
| HSV | hsv(277, 80%, 29%) |
| CMYK | cmyk(31.1%, 79.7%, 0%, 71%) |
| CIE-LAB | lab(12.86, 29.51, -28.92) |
| CIE-LCH | lch(12.86, 41.32, 315.58°) |
| OKLab | oklab(26.19% 0.0656 -0.082) |
| OKLCH | oklch(26.19% 0.105 308.7) |
| XYZ | xyz(2.7718, 1.5399, 6.6285) |
| Luminance | 0.0154 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 3.50
Dark Violet
#34013F
ΔE00 3.58
Deep Purple
#36013F
ΔE00 3.84
Midnight Purple
#280137
ΔE00 4.25
Very Dark Purple
#2A0134
ΔE00 4.88
Dark Indigo
#1F0954
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#330F4A #264A0F
analogous
#150F4A #330F4A #4A0F44
triadic
#330F4A #4A330F #0F4A33
tetradic
#330F4A #4A150F #264A0F #0F444A
square
#330F4A #4A150F #264A0F #0F444A
split-complementary
#330F4A #444A0F #0F4A15
monochromatic
#120519 #120519 #330F4A #56197D #7924B0
Accessibility & contrast
On white
16.06
#330F4A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.31
#330F4A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #330F4A
16.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##330F4A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##330F4A | 1.00 | 16.06 | 1.31 | 16.06 |
| #FFFFFF | 16.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#2F1D2B
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #330f4a; /* rgb */ color: rgb(51, 15, 74); /* oklch */ color: oklch(26.2% 0.105 308.7);
Tailwind
colors: {
custom: {
50: '#6e517d',
500: '#330f4a',
950: '#000000',
},
}SCSS
$custom: #330f4a; $custom-light: #6e517d; $custom-dark: #000000;
JSON
{
"hex": "#330f4a",
"rgb": {
"r": 51,
"g": 15,
"b": 74
},
"hsl": {
"h": 276.61,
"s": 66.292,
"l": 17.451
},
"oklch": {
"l": 0.26191,
"c": 0.10501,
"h": 308.7
},
"luminance": 0.0154
}Semantic roles & 50–950 ramp
primary
#330F4A
secondary
#518430
accent
#E93F81
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B