#301A8F#301A8F
#301A8F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.176 H 280.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #301A8F |
|---|---|
| RGB | rgb(48, 26, 143) |
| HSL | hsl(251, 69%, 33%) |
| HSV | hsv(251, 82%, 56%) |
| CMYK | cmyk(66.4%, 81.8%, 0%, 43.9%) |
| CIE-LAB | lab(21.39, 43.76, -60.06) |
| CIE-LCH | lch(21.39, 74.31, 306.08°) |
| OKLab | oklab(34.2% 0.0313 -0.1734) |
| OKLCH | oklch(34.2% 0.176 280.2) |
| XYZ | xyz(6.5447, 3.3498, 26.2830) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.93
Indigo (survey)
#380282
ΔE00 4.14
Cobalt Blue
#030AA7
ΔE00 4.43
Royal Blue (survey)
#0504AA
ΔE00 4.85
Indigo Blue
#3A18B1
ΔE00 4.87
Darkblue
#00008B
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301A8F #798F1A
analogous
#1A3E8F #301A8F #6A1A8F
triadic
#301A8F #8F301A #1A8F30
tetradic
#301A8F #8F1A3E #798F1A #1A8F6A
square
#301A8F #8F1A3E #798F1A #1A8F6A
split-complementary
#301A8F #8F6A1A #3E8F1A
monochromatic
#0D0727 #1F115B #301A8F #4123C3 #6246DD
Accessibility & contrast
On white
12.57
#301A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#301A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301A8F
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301A8F | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #301a8f; /* rgb */ color: rgb(48, 26, 143); /* oklch */ color: oklch(34.2% 0.176 280.2);
Tailwind
colors: {
custom: {
50: '#775bb1',
500: '#301a8f',
950: '#000000',
},
}SCSS
$custom: #301a8f; $custom-light: #775bb1; $custom-dark: #000000;
JSON
{
"hex": "#301a8f",
"rgb": {
"r": 48,
"g": 26,
"b": 143
},
"hsl": {
"h": 251.282,
"s": 69.231,
"l": 33.137
},
"oklch": {
"l": 0.34201,
"c": 0.17617,
"h": 280.2
},
"luminance": 0.0335
}Semantic roles & 50–950 ramp
primary
#301A8F
secondary
#A8BF46
accent
#EC3CCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980