#301D7C#301D7C
#301D7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.150 H 283.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #301D7C |
|---|---|
| RGB | rgb(48, 29, 124) |
| HSL | hsl(252, 62%, 30%) |
| HSV | hsv(252, 77%, 49%) |
| CMYK | cmyk(61.3%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.89, 36.26, -50.58) |
| CIE-LCH | lch(19.89, 62.23, 305.64°) |
| OKLab | oklab(32.54% 0.0348 -0.1457) |
| OKLCH | oklch(32.54% 0.15 283.4) |
| XYZ | xyz(5.2953, 2.9620, 19.3576) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.44
Indigo (survey)
#380282
ΔE00 4.62
Royal
#0C1793
ΔE00 4.77
Dark Royal Blue
#02066F
ΔE00 6.05
Indigo
#4B0082
ΔE00 6.19
Navy
#000080
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301D7C #697C1D
analogous
#1D397C #301D7C #601D7C
triadic
#301D7C #7C301D #1D7C30
tetradic
#301D7C #7C1D39 #697C1D #1D7C60
square
#301D7C #7C1D39 #697C1D #1D7C60
split-complementary
#301D7C #7C601D #397C1D
monochromatic
#0A0619 #1D114A #301D7C #4329AE #5E41D3
Accessibility & contrast
On white
13.19
#301D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#301D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301D7C
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301D7C | 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)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301d7c; /* rgb */ color: rgb(48, 29, 124); /* oklch */ color: oklch(32.5% 0.150 283.4);
Tailwind
colors: {
custom: {
50: '#725ba3',
500: '#301d7c',
950: '#000000',
},
}SCSS
$custom: #301d7c; $custom-light: #725ba3; $custom-dark: #000000;
JSON
{
"hex": "#301d7c",
"rgb": {
"r": 48,
"g": 29,
"b": 124
},
"hsl": {
"h": 252,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.32539,
"c": 0.14985,
"h": 283.4
},
"luminance": 0.02962
}Semantic roles & 50–950 ramp
primary
#301D7C
secondary
#9AB045
accent
#E543C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F