#301C7E#301C7E
#301C7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.153 H 283.2°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #301C7E |
|---|---|
| RGB | rgb(48, 28, 126) |
| HSL | hsl(252, 64%, 30%) |
| HSV | hsv(252, 78%, 49%) |
| CMYK | cmyk(61.9%, 77.8%, 0%, 50.6%) |
| CIE-LAB | lab(19.90, 37.45, -51.83) |
| CIE-LCH | lch(19.90, 63.94, 305.85°) |
| OKLab | oklab(32.61% 0.035 -0.1494) |
| OKLCH | oklch(32.61% 0.153 283.2) |
| XYZ | xyz(5.3989, 2.9649, 20.0224) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.61
Indigo (survey)
#380282
ΔE00 4.30
Royal
#0C1793
ΔE00 4.45
Darkblue
#00008B
ΔE00 5.93
Dark Royal Blue
#02066F
ΔE00 5.95
Indigo
#4B0082
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C7E #6A7E1C
analogous
#1C397E #301C7E #611C7E
triadic
#301C7E #7E301C #1C7E30
tetradic
#301C7E #7E1C39 #6A7E1C #1C7E61
square
#301C7E #7E1C39 #6A7E1C #1C7E61
split-complementary
#301C7E #7E611C #397E1C
monochromatic
#0A061A #1D114C #301C7E #4327B0 #5E40D5
Accessibility & contrast
On white
13.18
#301C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#301C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C7E
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C7E | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301c7e; /* rgb */ color: rgb(48, 28, 126); /* oklch */ color: oklch(32.6% 0.153 283.2);
Tailwind
colors: {
custom: {
50: '#735ba4',
500: '#301c7e',
950: '#000000',
},
}SCSS
$custom: #301c7e; $custom-light: #735ba4; $custom-dark: #000000;
JSON
{
"hex": "#301c7e",
"rgb": {
"r": 48,
"g": 28,
"b": 126
},
"hsl": {
"h": 252.245,
"s": 63.636,
"l": 30.196
},
"oklch": {
"l": 0.3261,
"c": 0.15345,
"h": 283.2
},
"luminance": 0.02965
}Semantic roles & 50–950 ramp
primary
#301C7E
secondary
#9BB244
accent
#E741C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F