#301A7C#301A7C
#301A7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.153 H 284.0°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #301A7C |
|---|---|
| RGB | rgb(48, 26, 124) |
| HSL | hsl(253, 65%, 29%) |
| HSV | hsv(253, 79%, 49%) |
| CMYK | cmyk(61.3%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(19.32, 37.89, -51.52) |
| CIE-LCH | lch(19.32, 63.96, 306.33°) |
| OKLab | oklab(32.14% 0.0371 -0.1485) |
| OKLCH | oklch(32.14% 0.153 284) |
| XYZ | xyz(5.2253, 2.8221, 19.3342) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.53
Indigo (survey)
#380282
ΔE00 3.95
Royal
#0C1793
ΔE00 4.64
Dark Royal Blue
#02066F
ΔE00 5.62
Indigo
#4B0082
ΔE00 5.69
Navy
#000080
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301A7C #667C1A
analogous
#1A357C #301A7C #611A7C
triadic
#301A7C #7C301A #1A7C30
tetradic
#301A7C #7C1A35 #667C1A #1A7C61
square
#301A7C #7C1A35 #667C1A #1A7C61
split-complementary
#301A7C #7C611A #357C1A
monochromatic
#0A0519 #1C0F49 #301A7C #4425AF #5D3BD6
Accessibility & contrast
On white
13.42
#301A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#301A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301A7C
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301A7C | 1.00 | 13.42 | 1.56 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#01364A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #301a7c; /* rgb */ color: rgb(48, 26, 124); /* oklch */ color: oklch(32.1% 0.153 284.0);
Tailwind
colors: {
custom: {
50: '#735aa3',
500: '#301a7c',
950: '#000000',
},
}SCSS
$custom: #301a7c; $custom-light: #735aa3; $custom-dark: #000000;
JSON
{
"hex": "#301a7c",
"rgb": {
"r": 48,
"g": 26,
"b": 124
},
"hsl": {
"h": 253.469,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.32135,
"c": 0.15303,
"h": 284
},
"luminance": 0.02822
}Semantic roles & 50–950 ramp
primary
#301A7C
secondary
#97B042
accent
#E840C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F