#301E7E#301E7E
#301E7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.151 H 282.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #301E7E |
|---|---|
| RGB | rgb(48, 30, 126) |
| HSL | hsl(251, 62%, 31%) |
| HSV | hsv(251, 76%, 49%) |
| CMYK | cmyk(61.9%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.29, 36.34, -51.19) |
| CIE-LCH | lch(20.29, 62.78, 305.37°) |
| OKLab | oklab(32.89% 0.0335 -0.1475) |
| OKLCH | oklch(32.89% 0.151 282.8) |
| XYZ | xyz(5.4479, 3.0629, 20.0387) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.60
Royal
#0C1793
ΔE00 4.57
Indigo (survey)
#380282
ΔE00 4.76
Dark Royal Blue
#02066F
ΔE00 6.25
Darkblue
#00008B
ΔE00 6.30
Indigo
#4B0082
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301E7E #6C7E1E
analogous
#1E3C7E #301E7E #601E7E
triadic
#301E7E #7E301E #1E7E30
tetradic
#301E7E #7E1E3C #6C7E1E #1E7E60
square
#301E7E #7E1E3C #6C7E1E #1E7E60
split-complementary
#301E7E #7E601E #3C7E1E
monochromatic
#0A061B #1D124D #301E7E #432AAF #5F44D2
Accessibility & contrast
On white
13.02
#301E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#301E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301E7E
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301E7E | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301e7e; /* rgb */ color: rgb(48, 30, 126); /* oklch */ color: oklch(32.9% 0.151 282.8);
Tailwind
colors: {
custom: {
50: '#735ca4',
500: '#301e7e',
950: '#000000',
},
}SCSS
$custom: #301e7e; $custom-light: #735ca4; $custom-dark: #000000;
JSON
{
"hex": "#301e7e",
"rgb": {
"r": 48,
"g": 30,
"b": 126
},
"hsl": {
"h": 251.25,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.32886,
"c": 0.15129,
"h": 282.8
},
"luminance": 0.03063
}Semantic roles & 50–950 ramp
primary
#301E7E
secondary
#9DB147
accent
#E543C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F