#301B81#301B81
#301B81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 282.7°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #301B81 |
|---|---|
| RGB | rgb(48, 27, 129) |
| HSL | hsl(252, 65%, 31%) |
| HSV | hsv(252, 79%, 51%) |
| CMYK | cmyk(62.8%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(20.03, 38.93, -53.52) |
| CIE-LCH | lch(20.03, 66.18, 306.03°) |
| OKLab | oklab(32.8% 0.0349 -0.1543) |
| OKLCH | oklch(32.8% 0.158 282.7) |
| XYZ | xyz(5.5721, 2.9968, 21.0494) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.91
Indigo (survey)
#380282
ΔE00 3.98
Royal
#0C1793
ΔE00 4.04
Darkblue
#00008B
ΔE00 5.56
Navy
#000080
ΔE00 5.72
Indigo
#4B0082
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301B81 #6C811B
analogous
#1B3981 #301B81 #631B81
triadic
#301B81 #81301B #1B8130
tetradic
#301B81 #811B39 #6C811B #1B8163
square
#301B81 #811B39 #6C811B #1B8163
split-complementary
#301B81 #81631B #39811B
monochromatic
#0A061C #1D104E #301B81 #4326B4 #5F3FD7
Accessibility & contrast
On white
13.13
#301B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#301B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301B81
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301B81 | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #301b81; /* rgb */ color: rgb(48, 27, 129); /* oklch */ color: oklch(32.8% 0.158 282.7);
Tailwind
colors: {
custom: {
50: '#745aa7',
500: '#301b81',
950: '#000000',
},
}SCSS
$custom: #301b81; $custom-light: #745aa7; $custom-dark: #000000;
JSON
{
"hex": "#301b81",
"rgb": {
"r": 48,
"g": 27,
"b": 129
},
"hsl": {
"h": 252.353,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.32795,
"c": 0.15823,
"h": 282.7
},
"luminance": 0.02997
}Semantic roles & 50–950 ramp
primary
#301B81
secondary
#9DB543
accent
#E83FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F