#301D7F#301D7F
#301D7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 282.8°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #301D7F |
|---|---|
| RGB | rgb(48, 29, 127) |
| HSL | hsl(252, 63%, 31%) |
| HSV | hsv(252, 77%, 50%) |
| CMYK | cmyk(62.2%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.20, 37.22, -51.98) |
| CIE-LCH | lch(20.20, 63.93, 305.61°) |
| OKLab | oklab(32.85% 0.034 -0.1498) |
| OKLCH | oklch(32.85% 0.154 282.8) |
| XYZ | xyz(5.4879, 3.0390, 20.3720) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.68
Royal
#0C1793
ΔE00 4.38
Indigo (survey)
#380282
ΔE00 4.49
Darkblue
#00008B
ΔE00 6.04
Indigo
#4B0082
ΔE00 6.11
Navy
#000080
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301D7F #6C7F1D
analogous
#1D3B7F #301D7F #611D7F
triadic
#301D7F #7F301D #1D7F30
tetradic
#301D7F #7F1D3B #6C7F1D #1D7F61
square
#301D7F #7F1D3B #6C7F1D #1D7F61
split-complementary
#301D7F #7F611D #3B7F1D
monochromatic
#0A061B #1D124D #301D7F #4328B1 #5F42D4
Accessibility & contrast
On white
13.06
#301D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#301D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301D7F
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301D7F | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301d7f; /* rgb */ color: rgb(48, 29, 127); /* oklch */ color: oklch(32.9% 0.154 282.8);
Tailwind
colors: {
custom: {
50: '#735ca5',
500: '#301d7f',
950: '#000000',
},
}SCSS
$custom: #301d7f; $custom-light: #735ca5; $custom-dark: #000000;
JSON
{
"hex": "#301d7f",
"rgb": {
"r": 48,
"g": 29,
"b": 127
},
"hsl": {
"h": 251.633,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.3285,
"c": 0.15366,
"h": 282.8
},
"luminance": 0.03039
}Semantic roles & 50–950 ramp
primary
#301D7F
secondary
#9DB245
accent
#E642C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F