#330CA2#330CA2
#330CA2 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.5% C 0.206 H 279.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #330CA2 |
|---|---|
| RGB | rgb(51, 12, 162) |
| HSL | hsl(256, 86%, 34%) |
| HSV | hsv(256, 93%, 64%) |
| CMYK | cmyk(68.5%, 92.6%, 0%, 36.5%) |
| CIE-LAB | lab(22.21, 54.56, -70.39) |
| CIE-LCH | lch(22.21, 89.06, 307.78°) |
| OKLab | oklab(35.49% 0.0342 -0.2031) |
| OKLCH | oklch(35.49% 0.206 279.6) |
| XYZ | xyz(8.0162, 3.5747, 34.4430) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ultramarine
#2000B1
ΔE00 2.35
Cobalt Blue
#030AA7
ΔE00 2.83
Royal Blue (survey)
#0504AA
ΔE00 2.83
Indigo Blue
#3A18B1
ΔE00 2.84
Royal
#0C1793
ΔE00 4.13
Indigo (survey)
#380282
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#330CA2 #7BA20C
analogous
#0C30A2 #330CA2 #7E0CA2
triadic
#330CA2 #A2330C #0CA233
tetradic
#330CA2 #A20C30 #7BA20C #0CA27E
square
#330CA2 #A20C30 #7BA20C #0CA27E
split-complementary
#330CA2 #A27E0C #30A20C
monochromatic
#0F0430 #210869 #330CA2 #4510DB #6838F0
Accessibility & contrast
On white
12.24
#330CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#330CA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #330CA2
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##330CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##330CA2 | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA6
Deuteranopia (green-blind)
#002FA0
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #330ca2; /* rgb */ color: rgb(51, 12, 162); /* oklch */ color: oklch(35.5% 0.206 279.6);
Tailwind
colors: {
custom: {
50: '#7d57bf',
500: '#330ca2',
950: '#000000',
},
}SCSS
$custom: #330ca2; $custom-light: #7d57bf; $custom-dark: #000000;
JSON
{
"hex": "#330ca2",
"rgb": {
"r": 51,
"g": 12,
"b": 162
},
"hsl": {
"h": 255.6,
"s": 86.207,
"l": 34.118
},
"oklch": {
"l": 0.35488,
"c": 0.20594,
"h": 279.6
},
"luminance": 0.03575
}Semantic roles & 50–950 ramp
primary
#330CA2
secondary
#A8CF3B
accent
#FC2BC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981