#301986#301986
#301986 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.166 H 282.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #301986 |
|---|---|
| RGB | rgb(48, 25, 134) |
| HSL | hsl(253, 69%, 31%) |
| HSV | hsv(253, 81%, 53%) |
| CMYK | cmyk(64.2%, 81.3%, 0%, 47.5%) |
| CIE-LAB | lab(20.22, 41.49, -56.36) |
| CIE-LCH | lch(20.22, 69.99, 306.36°) |
| OKLab | oklab(33.09% 0.0347 -0.1626) |
| OKLCH | oklch(33.09% 0.166 282) |
| XYZ | xyz(5.8683, 3.0444, 22.8280) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.48
Indigo (survey)
#380282
ΔE00 3.57
Midnight Blue
#191970
ΔE00 4.52
Darkblue
#00008B
ΔE00 5.02
Navy
#000080
ΔE00 5.39
Cobalt Blue
#030AA7
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301986 #6F8619
analogous
#193886 #301986 #661986
triadic
#301986 #863019 #198630
tetradic
#301986 #861938 #6F8619 #198666
square
#301986 #861938 #6F8619 #198666
split-complementary
#301986 #866619 #388619
monochromatic
#0B061F #1E0F52 #301986 #4223BA #5F3EDB
Accessibility & contrast
On white
13.05
#301986 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#301986 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301986
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301986 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301986 | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301986; /* rgb */ color: rgb(48, 25, 134); /* oklch */ color: oklch(33.1% 0.166 282.0);
Tailwind
colors: {
custom: {
50: '#755aaa',
500: '#301986',
950: '#000000',
},
}SCSS
$custom: #301986; $custom-light: #755aaa; $custom-dark: #000000;
JSON
{
"hex": "#301986",
"rgb": {
"r": 48,
"g": 25,
"b": 134
},
"hsl": {
"h": 252.661,
"s": 68.553,
"l": 31.176
},
"oklch": {
"l": 0.3309,
"c": 0.16626,
"h": 282
},
"luminance": 0.03045
}Semantic roles & 50–950 ramp
primary
#301986
secondary
#A0BA41
accent
#EB3CC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F