#301A8E#301A8E
#301A8E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.175 H 280.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #301A8E |
|---|---|
| RGB | rgb(48, 26, 142) |
| HSL | hsl(251, 69%, 33%) |
| HSV | hsv(251, 82%, 56%) |
| CMYK | cmyk(66.2%, 81.7%, 0%, 44.3%) |
| CIE-LAB | lab(21.28, 43.45, -59.62) |
| CIE-LCH | lch(21.28, 73.77, 306.09°) |
| OKLab | oklab(34.09% 0.0316 -0.1721) |
| OKLCH | oklch(34.09% 0.175 280.4) |
| XYZ | xyz(6.4693, 3.3197, 25.8858) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.96
Indigo (survey)
#380282
ΔE00 4.08
Cobalt Blue
#030AA7
ΔE00 4.54
Royal Blue (survey)
#0504AA
ΔE00 4.95
Indigo Blue
#3A18B1
ΔE00 5.01
Darkblue
#00008B
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301A8E #788E1A
analogous
#1A3E8E #301A8E #6A1A8E
triadic
#301A8E #8E301A #1A8E30
tetradic
#301A8E #8E1A3E #788E1A #1A8E6A
square
#301A8E #8E1A3E #788E1A #1A8E6A
split-complementary
#301A8E #8E6A1A #3E8E1A
monochromatic
#0D0727 #1F115A #301A8E #4123C2 #6245DD
Accessibility & contrast
On white
12.62
#301A8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#301A8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301A8E
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301A8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301A8E | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #301a8e; /* rgb */ color: rgb(48, 26, 142); /* oklch */ color: oklch(34.1% 0.175 280.4);
Tailwind
colors: {
custom: {
50: '#765bb0',
500: '#301a8e',
950: '#000000',
},
}SCSS
$custom: #301a8e; $custom-light: #765bb0; $custom-dark: #000000;
JSON
{
"hex": "#301a8e",
"rgb": {
"r": 48,
"g": 26,
"b": 142
},
"hsl": {
"h": 251.379,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.3409,
"c": 0.17498,
"h": 280.4
},
"luminance": 0.0332
}Semantic roles & 50–950 ramp
primary
#301A8E
secondary
#A7BE45
accent
#EC3CCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980