#301C7C#301C7C
#301C7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.151 H 283.6°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #301C7C |
|---|---|
| RGB | rgb(48, 28, 124) |
| HSL | hsl(253, 63%, 30%) |
| HSV | hsv(253, 77%, 49%) |
| CMYK | cmyk(61.3%, 77.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.70, 36.81, -50.90) |
| CIE-LCH | lch(19.70, 62.82, 305.88°) |
| OKLab | oklab(32.4% 0.0356 -0.1467) |
| OKLCH | oklch(32.4% 0.151 283.6) |
| XYZ | xyz(5.2711, 2.9138, 19.3495) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.46
Indigo (survey)
#380282
ΔE00 4.39
Royal
#0C1793
ΔE00 4.71
Dark Royal Blue
#02066F
ΔE00 5.90
Indigo
#4B0082
ΔE00 6.01
Navy
#000080
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C7C #687C1C
analogous
#1C387C #301C7C #601C7C
triadic
#301C7C #7C301C #1C7C30
tetradic
#301C7C #7C1C38 #687C1C #1C7C60
square
#301C7C #7C1C38 #687C1C #1C7C60
split-complementary
#301C7C #7C601C #387C1C
monochromatic
#0A0619 #1D114A #301C7C #4327AE #5E3FD4
Accessibility & contrast
On white
13.27
#301C7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#301C7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C7C
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C7C | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#01374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301c7c; /* rgb */ color: rgb(48, 28, 124); /* oklch */ color: oklch(32.4% 0.151 283.6);
Tailwind
colors: {
custom: {
50: '#725ba3',
500: '#301c7c',
950: '#000000',
},
}SCSS
$custom: #301c7c; $custom-light: #725ba3; $custom-dark: #000000;
JSON
{
"hex": "#301c7c",
"rgb": {
"r": 48,
"g": 28,
"b": 124
},
"hsl": {
"h": 252.5,
"s": 63.158,
"l": 29.804
},
"oklch": {
"l": 0.32401,
"c": 0.15093,
"h": 283.6
},
"luminance": 0.02914
}Semantic roles & 50–950 ramp
primary
#301C7C
secondary
#99B044
accent
#E642C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F