#301786#301786
#301786 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.168 H 282.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #301786 |
|---|---|
| RGB | rgb(48, 23, 134) |
| HSL | hsl(254, 71%, 31%) |
| HSV | hsv(254, 83%, 53%) |
| CMYK | cmyk(64.2%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.89, 42.45, -56.91) |
| CIE-LCH | lch(19.89, 71.00, 306.72°) |
| OKLab | oklab(32.86% 0.0358 -0.1642) |
| OKLCH | oklch(32.86% 0.168 282.3) |
| XYZ | xyz(5.8271, 2.9620, 22.8143) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.20
Royal
#0C1793
ΔE00 3.48
Midnight Blue
#191970
ΔE00 4.63
Darkblue
#00008B
ΔE00 4.74
Navy
#000080
ΔE00 5.11
Indigo
#4B0082
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301786 #6D8617
analogous
#173586 #301786 #671786
triadic
#301786 #863017 #178630
tetradic
#301786 #861735 #6D8617 #178667
square
#301786 #861735 #6D8617 #178667
split-complementary
#301786 #866717 #358617
monochromatic
#0B051E #1D0E52 #301786 #4320BA #5F3ADD
Accessibility & contrast
On white
13.19
#301786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#301786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301786
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301786 | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301786; /* rgb */ color: rgb(48, 23, 134); /* oklch */ color: oklch(32.9% 0.168 282.3);
Tailwind
colors: {
custom: {
50: '#7559aa',
500: '#301786',
950: '#000000',
},
}SCSS
$custom: #301786; $custom-light: #7559aa; $custom-dark: #000000;
JSON
{
"hex": "#301786",
"rgb": {
"r": 48,
"g": 23,
"b": 134
},
"hsl": {
"h": 253.514,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.32861,
"c": 0.16803,
"h": 282.3
},
"luminance": 0.02962
}Semantic roles & 50–950 ramp
primary
#301786
secondary
#9EBA3F
accent
#ED3AC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F