#301C7F#301C7F
#301C7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.155 H 283.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #301C7F |
|---|---|
| RGB | rgb(48, 28, 127) |
| HSL | hsl(252, 64%, 30%) |
| HSV | hsv(252, 78%, 50%) |
| CMYK | cmyk(62.2%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(20.01, 37.77, -52.29) |
| CIE-LCH | lch(20.01, 64.51, 305.84°) |
| OKLab | oklab(32.71% 0.0348 -0.1507) |
| OKLCH | oklch(32.71% 0.155 283) |
| XYZ | xyz(5.4638, 2.9908, 20.3639) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.70
Indigo (survey)
#380282
ΔE00 4.26
Royal
#0C1793
ΔE00 4.32
Darkblue
#00008B
ΔE00 5.86
Indigo
#4B0082
ΔE00 5.94
Navy
#000080
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C7F #6B7F1C
analogous
#1C3A7F #301C7F #611C7F
triadic
#301C7F #7F301C #1C7F30
tetradic
#301C7F #7F1C3A #6B7F1C #1C7F61
square
#301C7F #7F1C3A #6B7F1C #1C7F61
split-complementary
#301C7F #7F611C #3A7F1C
monochromatic
#0A061B #1D114D #301C7F #4327B1 #5E40D5
Accessibility & contrast
On white
13.14
#301C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#301C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C7F
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C7F | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301c7f; /* rgb */ color: rgb(48, 28, 127); /* oklch */ color: oklch(32.7% 0.155 283.0);
Tailwind
colors: {
custom: {
50: '#735ba5',
500: '#301c7f',
950: '#000000',
},
}SCSS
$custom: #301c7f; $custom-light: #735ba5; $custom-dark: #000000;
JSON
{
"hex": "#301c7f",
"rgb": {
"r": 48,
"g": 28,
"b": 127
},
"hsl": {
"h": 252.121,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.32715,
"c": 0.15471,
"h": 283
},
"luminance": 0.02991
}Semantic roles & 50–950 ramp
primary
#301C7F
secondary
#9CB344
accent
#E741C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F