#301C7D#301C7D
#301C7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.152 H 283.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #301C7D |
|---|---|
| RGB | rgb(48, 28, 125) |
| HSL | hsl(252, 63%, 30%) |
| HSV | hsv(252, 78%, 49%) |
| CMYK | cmyk(61.6%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(19.80, 37.13, -51.37) |
| CIE-LCH | lch(19.80, 63.38, 305.86°) |
| OKLab | oklab(32.51% 0.0353 -0.148) |
| OKLCH | oklch(32.51% 0.152 283.4) |
| XYZ | xyz(5.3347, 2.9392, 19.6843) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 4.34
Royal
#0C1793
ΔE00 4.58
Dark Royal Blue
#02066F
ΔE00 5.92
Indigo
#4B0082
ΔE00 5.99
Darkblue
#00008B
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C7D #697D1C
analogous
#1C397D #301C7D #601C7D
triadic
#301C7D #7D301C #1C7D30
tetradic
#301C7D #7D1C39 #697D1C #1C7D60
square
#301C7D #7D1C39 #697D1C #1C7D60
split-complementary
#301C7D #7D601C #397D1C
monochromatic
#0A0619 #1D114B #301C7D #4327AF #5E3FD4
Accessibility & contrast
On white
13.22
#301C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#301C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C7D
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C7D | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301c7d; /* rgb */ color: rgb(48, 28, 125); /* oklch */ color: oklch(32.5% 0.152 283.4);
Tailwind
colors: {
custom: {
50: '#735ba4',
500: '#301c7d',
950: '#000000',
},
}SCSS
$custom: #301c7d; $custom-light: #735ba4; $custom-dark: #000000;
JSON
{
"hex": "#301c7d",
"rgb": {
"r": 48,
"g": 28,
"b": 125
},
"hsl": {
"h": 252.371,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.32505,
"c": 0.15219,
"h": 283.4
},
"luminance": 0.0294
}Semantic roles & 50–950 ramp
primary
#301C7D
secondary
#9AB144
accent
#E641C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F