#301C76#301C76
#301C76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.143 H 285.0°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #301C76 |
|---|---|
| RGB | rgb(48, 28, 118) |
| HSL | hsl(253, 62%, 29%) |
| HSV | hsv(253, 76%, 46%) |
| CMYK | cmyk(59.3%, 76.3%, 0%, 53.7%) |
| CIE-LAB | lab(19.08, 34.91, -48.07) |
| CIE-LCH | lch(19.08, 59.41, 305.99°) |
| OKLab | oklab(31.78% 0.0371 -0.1384) |
| OKLCH | oklch(31.78% 0.143 285) |
| XYZ | xyz(4.9032, 2.7666, 17.4117) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.18
Indigo (survey)
#380282
ΔE00 4.81
Royal
#0C1793
ΔE00 5.58
Dark Royal Blue
#02066F
ΔE00 5.87
Deep Blue
#040273
ΔE00 6.16
Indigo
#4B0082
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C76 #62761C
analogous
#1C3576 #301C76 #5D1C76
triadic
#301C76 #76301C #1C7630
tetradic
#301C76 #761C35 #62761C #1C765D
square
#301C76 #761C35 #62761C #1C765D
split-complementary
#301C76 #765D1C #35761C
monochromatic
#0A0619 #1C1045 #301C76 #4428A7 #5D3CD1
Accessibility & contrast
On white
13.52
#301C76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#301C76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C76
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C76 | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#0C3547
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #301c76; /* rgb */ color: rgb(48, 28, 118); /* oklch */ color: oklch(31.8% 0.143 285.0);
Tailwind
colors: {
custom: {
50: '#715a9e',
500: '#301c76',
950: '#000000',
},
}SCSS
$custom: #301c76; $custom-light: #715a9e; $custom-dark: #000000;
JSON
{
"hex": "#301c76",
"rgb": {
"r": 48,
"g": 28,
"b": 118
},
"hsl": {
"h": 253.333,
"s": 61.644,
"l": 28.627
},
"oklch": {
"l": 0.31784,
"c": 0.14328,
"h": 285
},
"luminance": 0.02767
}Semantic roles & 50–950 ramp
primary
#301C76
secondary
#93AA44
accent
#E543C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E