#301F7E#301F7E
#301F7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.150 H 282.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #301F7E |
|---|---|
| RGB | rgb(48, 31, 126) |
| HSL | hsl(251, 61%, 31%) |
| HSV | hsv(251, 75%, 49%) |
| CMYK | cmyk(61.9%, 75.4%, 0%, 50.6%) |
| CIE-LAB | lab(20.50, 35.77, -50.85) |
| CIE-LCH | lch(20.50, 62.18, 305.13°) |
| OKLab | oklab(33.03% 0.0328 -0.1466) |
| OKLCH | oklch(33.03% 0.15 282.6) |
| XYZ | xyz(5.4736, 3.1143, 20.0473) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.61
Royal
#0C1793
ΔE00 4.65
Indigo (survey)
#380282
ΔE00 5.00
Dark Royal Blue
#02066F
ΔE00 6.42
Darkblue
#00008B
ΔE00 6.49
Indigo
#4B0082
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F7E #6D7E1F
analogous
#1F3D7E #301F7E #5F1F7E
triadic
#301F7E #7E301F #1F7E30
tetradic
#301F7E #7E1F3D #6D7E1F #1F7E5F
square
#301F7E #7E1F3D #6D7E1F #1F7E5F
split-complementary
#301F7E #7E5F1F #3D7E1F
monochromatic
#0B071C #1D134D #301F7E #432BAF #5F46D1
Accessibility & contrast
On white
12.94
#301F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#301F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F7E
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F7E | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301f7e; /* rgb */ color: rgb(48, 31, 126); /* oklch */ color: oklch(33.0% 0.150 282.6);
Tailwind
colors: {
custom: {
50: '#735da4',
500: '#301f7e',
950: '#000000',
},
}SCSS
$custom: #301f7e; $custom-light: #735da4; $custom-dark: #000000;
JSON
{
"hex": "#301f7e",
"rgb": {
"r": 48,
"g": 31,
"b": 126
},
"hsl": {
"h": 250.737,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.33029,
"c": 0.15019,
"h": 282.6
},
"luminance": 0.03115
}Semantic roles & 50–950 ramp
primary
#301F7E
secondary
#9EB148
accent
#E444C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F