#301C8E#301C8E
#301C8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.173 H 280.1°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).
Color values
| HEX | #301C8E |
|---|---|
| RGB | rgb(48, 28, 142) |
| HSL | hsl(251, 67%, 33%) |
| HSV | hsv(251, 80%, 56%) |
| CMYK | cmyk(66.2%, 80.3%, 0%, 44.3%) |
| CIE-LAB | lab(21.62, 42.47, -59.06) |
| CIE-LCH | lch(21.62, 72.74, 305.72°) |
| OKLab | oklab(34.33% 0.0305 -0.1705) |
| OKLCH | oklch(34.33% 0.173 280.1) |
| XYZ | xyz(6.5151, 3.4114, 25.9011) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.02
Indigo (survey)
#380282
ΔE00 4.43
Cobalt Blue
#030AA7
ΔE00 4.73
Indigo Blue
#3A18B1
ΔE00 5.04
Royal Blue (survey)
#0504AA
ΔE00 5.17
Midnight Blue
#191970
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C8E #7A8E1C
analogous
#1C418E #301C8E #691C8E
triadic
#301C8E #8E301C #1C8E30
tetradic
#301C8E #8E1C41 #7A8E1C #1C8E69
square
#301C8E #8E1C41 #7A8E1C #1C8E69
split-complementary
#301C8E #8E691C #418E1C
monochromatic
#0D0828 #1F125B #301C8E #4126C1 #6349DB
Accessibility & contrast
On white
12.48
#301C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#301C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C8E
12.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C8E | 1.00 | 12.48 | 1.68 | 12.48 |
| #FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #301c8e; /* rgb */ color: rgb(48, 28, 142); /* oklch */ color: oklch(34.3% 0.173 280.1);
Tailwind
colors: {
custom: {
50: '#765cb0',
500: '#301c8e',
950: '#000000',
},
}SCSS
$custom: #301c8e; $custom-light: #765cb0; $custom-dark: #000000;
JSON
{
"hex": "#301c8e",
"rgb": {
"r": 48,
"g": 28,
"b": 142
},
"hsl": {
"h": 250.526,
"s": 67.059,
"l": 33.333
},
"oklch": {
"l": 0.34326,
"c": 0.17319,
"h": 280.1
},
"luminance": 0.03412
}Semantic roles & 50–950 ramp
primary
#301C8E
secondary
#A9BD49
accent
#EA3ECC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980