#301D7D#301D7D
#301D7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 283.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #301D7D |
|---|---|
| RGB | rgb(48, 29, 125) |
| HSL | hsl(252, 62%, 30%) |
| HSV | hsv(252, 77%, 49%) |
| CMYK | cmyk(61.6%, 76.8%, 0%, 51%) |
| CIE-LAB | lab(19.99, 36.58, -51.05) |
| CIE-LCH | lch(19.99, 62.80, 305.63°) |
| OKLab | oklab(32.64% 0.0346 -0.1471) |
| OKLCH | oklch(32.64% 0.151 283.2) |
| XYZ | xyz(5.3588, 2.9874, 19.6923) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.52
Indigo (survey)
#380282
ΔE00 4.57
Royal
#0C1793
ΔE00 4.64
Dark Royal Blue
#02066F
ΔE00 6.07
Indigo
#4B0082
ΔE00 6.16
Darkblue
#00008B
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301D7D #6A7D1D
analogous
#1D3A7D #301D7D #601D7D
triadic
#301D7D #7D301D #1D7D30
tetradic
#301D7D #7D1D3A #6A7D1D #1D7D60
square
#301D7D #7D1D3A #6A7D1D #1D7D60
split-complementary
#301D7D #7D601D #3A7D1D
monochromatic
#0A061A #1D114B #301D7D #4329AF #5E41D3
Accessibility & contrast
On white
13.14
#301D7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#301D7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301D7D
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301D7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301D7D | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301d7d; /* rgb */ color: rgb(48, 29, 125); /* oklch */ color: oklch(32.6% 0.151 283.2);
Tailwind
colors: {
custom: {
50: '#735ba4',
500: '#301d7d',
950: '#000000',
},
}SCSS
$custom: #301d7d; $custom-light: #735ba4; $custom-dark: #000000;
JSON
{
"hex": "#301d7d",
"rgb": {
"r": 48,
"g": 29,
"b": 125
},
"hsl": {
"h": 251.875,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.32643,
"c": 0.15111,
"h": 283.2
},
"luminance": 0.02988
}Semantic roles & 50–950 ramp
primary
#301D7D
secondary
#9BB145
accent
#E542C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F