#330B56#330B56
#330B56 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.123 H 302.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).
Color values
| HEX | #330B56 |
|---|---|
| RGB | rgb(51, 11, 86) |
| HSL | hsl(272, 77%, 19%) |
| HSV | hsv(272, 87%, 34%) |
| CMYK | cmyk(40.7%, 87.2%, 0%, 66.3%) |
| CIE-LAB | lab(13.32, 34.46, -36.40) |
| CIE-LCH | lch(13.32, 50.12, 313.44°) |
| OKLab | oklab(26.86% 0.0665 -0.1039) |
| OKLCH | oklch(26.86% 0.123 302.6) |
| XYZ | xyz(3.1642, 1.6150, 8.9473) |
| Luminance | 0.0162 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.82
Dark Violet
#34013F
ΔE00 5.53
Royal Purple (survey)
#4B006E
ΔE00 5.58
Deep Purple
#36013F
ΔE00 5.83
Dark Purple
#35063E
ΔE00 6.04
Midnight Purple
#280137
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#330B56 #2E560B
analogous
#0E0B56 #330B56 #560B54
triadic
#330B56 #56330B #0B5633
tetradic
#330B56 #560E0B #2E560B #0B5456
square
#330B56 #560E0B #2E560B #0B5456
split-complementary
#330B56 #54560B #0B560E
monochromatic
#10031B #130420 #330B56 #53128C #7319C3
Accessibility & contrast
On white
15.87
#330B56 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.32
#330B56 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #330B56
15.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##330B56 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##330B56 | 1.00 | 15.87 | 1.32 | 15.87 |
| #FFFFFF | 15.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#2C2031
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #330b56; /* rgb */ color: rgb(51, 11, 86); /* oklch */ color: oklch(26.9% 0.123 302.6);
Tailwind
colors: {
custom: {
50: '#6f5086',
500: '#330b56',
950: '#000000',
},
}SCSS
$custom: #330b56; $custom-light: #6f5086; $custom-dark: #000000;
JSON
{
"hex": "#330b56",
"rgb": {
"r": 51,
"g": 11,
"b": 86
},
"hsl": {
"h": 272,
"s": 77.32,
"l": 19.02
},
"oklch": {
"l": 0.26856,
"c": 0.12337,
"h": 302.6
},
"luminance": 0.01615
}Semantic roles & 50–950 ramp
primary
#330B56
secondary
#5B912B
accent
#F4348E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C