#301C8B#301C8B
#301C8B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.170 H 280.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #301C8B |
|---|---|
| RGB | rgb(48, 28, 139) |
| HSL | hsl(251, 66%, 33%) |
| HSV | hsv(251, 80%, 55%) |
| CMYK | cmyk(65.5%, 79.9%, 0%, 45.5%) |
| CIE-LAB | lab(21.29, 41.53, -57.73) |
| CIE-LCH | lch(21.29, 71.12, 305.73°) |
| OKLab | oklab(34% 0.0314 -0.1666) |
| OKLCH | oklch(34% 0.17 280.7) |
| XYZ | xyz(6.2929, 3.3225, 24.7308) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.17
Indigo (survey)
#380282
ΔE00 4.30
Midnight Blue
#191970
ΔE00 5.00
Cobalt Blue
#030AA7
ΔE00 5.06
Darkblue
#00008B
ΔE00 5.38
Indigo Blue
#3A18B1
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C8B #778B1C
analogous
#1C3F8B #301C8B #681C8B
triadic
#301C8B #8B301C #1C8B30
tetradic
#301C8B #8B1C3F #778B1C #1C8B68
square
#301C8B #8B1C3F #778B1C #1C8B68
split-complementary
#301C8B #8B681C #3F8B1C
monochromatic
#0D0725 #1E1258 #301C8B #4226BE #6247DA
Accessibility & contrast
On white
12.62
#301C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#301C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C8B
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C8B | 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)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #301c8b; /* rgb */ color: rgb(48, 28, 139); /* oklch */ color: oklch(34.0% 0.170 280.7);
Tailwind
colors: {
custom: {
50: '#765cae',
500: '#301c8b',
950: '#000000',
},
}SCSS
$custom: #301c8b; $custom-light: #765cae; $custom-dark: #000000;
JSON
{
"hex": "#301c8b",
"rgb": {
"r": 48,
"g": 28,
"b": 139
},
"hsl": {
"h": 250.811,
"s": 66.467,
"l": 32.745
},
"oklch": {
"l": 0.33999,
"c": 0.16955,
"h": 280.7
},
"luminance": 0.03323
}Semantic roles & 50–950 ramp
primary
#301C8B
secondary
#A7BC47
accent
#E93ECB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F