#301E7A#301E7A
#301E7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.146 H 283.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #301E7A |
|---|---|
| RGB | rgb(48, 30, 122) |
| HSL | hsl(252, 61%, 30%) |
| HSV | hsv(252, 75%, 48%) |
| CMYK | cmyk(60.7%, 75.4%, 0%, 52.2%) |
| CIE-LAB | lab(19.89, 35.05, -49.30) |
| CIE-LCH | lch(19.89, 60.50, 305.41°) |
| OKLab | oklab(32.48% 0.0345 -0.142) |
| OKLCH | oklch(32.48% 0.146 283.7) |
| XYZ | xyz(5.1950, 2.9617, 18.7065) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.33
Indigo (survey)
#380282
ΔE00 4.98
Royal
#0C1793
ΔE00 5.12
Dark Royal Blue
#02066F
ΔE00 6.18
Deep Blue
#040273
ΔE00 6.45
Indigo
#4B0082
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301E7A #687A1E
analogous
#1E3A7A #301E7A #5E1E7A
triadic
#301E7A #7A301E #1E7A30
tetradic
#301E7A #7A1E3A #687A1E #1E7A5E
square
#301E7A #7A1E3A #687A1E #1E7A5E
split-complementary
#301E7A #7A5E1E #3A7A1E
monochromatic
#0A0619 #1D1249 #301E7A #432AAB #5E42D0
Accessibility & contrast
On white
13.19
#301E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#301E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301E7A
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301E7A | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#04374A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301e7a; /* rgb */ color: rgb(48, 30, 122); /* oklch */ color: oklch(32.5% 0.146 283.7);
Tailwind
colors: {
custom: {
50: '#725ca1',
500: '#301e7a',
950: '#000000',
},
}SCSS
$custom: #301e7a; $custom-light: #725ca1; $custom-dark: #000000;
JSON
{
"hex": "#301e7a",
"rgb": {
"r": 48,
"g": 30,
"b": 122
},
"hsl": {
"h": 251.739,
"s": 60.526,
"l": 29.804
},
"oklch": {
"l": 0.32477,
"c": 0.14616,
"h": 283.7
},
"luminance": 0.02962
}Semantic roles & 50–950 ramp
primary
#301E7A
secondary
#99AE46
accent
#E444C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F