#301B76#301B76
#301B76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.144 H 285.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #301B76 |
|---|---|
| RGB | rgb(48, 27, 118) |
| HSL | hsl(254, 63%, 28%) |
| HSV | hsv(254, 77%, 46%) |
| CMYK | cmyk(59.3%, 77.1%, 0%, 53.7%) |
| CIE-LAB | lab(18.89, 35.47, -48.39) |
| CIE-LCH | lch(18.89, 60.00, 306.24°) |
| OKLab | oklab(31.64% 0.0379 -0.1393) |
| OKLCH | oklch(31.64% 0.144 285.2) |
| XYZ | xyz(4.8799, 2.7200, 17.4039) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.20
Indigo (survey)
#380282
ΔE00 4.59
Royal
#0C1793
ΔE00 5.53
Dark Royal Blue
#02066F
ΔE00 5.71
Deep Blue
#040273
ΔE00 5.98
Indigo
#4B0082
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301B76 #61761B
analogous
#1B3376 #301B76 #5D1B76
triadic
#301B76 #76301B #1B7630
tetradic
#301B76 #761B33 #61761B #1B765D
square
#301B76 #761B33 #61761B #1B765D
split-complementary
#301B76 #765D1B #33761B
monochromatic
#0A0619 #1C1044 #301B76 #4426A8 #5D3AD2
Accessibility & contrast
On white
13.60
#301B76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#301B76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301B76
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301B76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301B76 | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#0D3447
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #301b76; /* rgb */ color: rgb(48, 27, 118); /* oklch */ color: oklch(31.6% 0.144 285.2);
Tailwind
colors: {
custom: {
50: '#715a9e',
500: '#301b76',
950: '#000000',
},
}SCSS
$custom: #301b76; $custom-light: #715a9e; $custom-dark: #000000;
JSON
{
"hex": "#301b76",
"rgb": {
"r": 48,
"g": 27,
"b": 118
},
"hsl": {
"h": 253.846,
"s": 62.759,
"l": 28.431
},
"oklch": {
"l": 0.31644,
"c": 0.14441,
"h": 285.2
},
"luminance": 0.0272
}Semantic roles & 50–950 ramp
primary
#301B76
secondary
#92AA42
accent
#E642C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E