#301F7D#301F7D
#301F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.149 H 282.8°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #301F7D |
|---|---|
| RGB | rgb(48, 31, 125) |
| HSL | hsl(251, 60%, 31%) |
| HSV | hsv(251, 75%, 49%) |
| CMYK | cmyk(61.6%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(20.40, 35.45, -50.38) |
| CIE-LCH | lch(20.40, 61.61, 305.13°) |
| OKLab | oklab(32.93% 0.033 -0.1452) |
| OKLCH | oklch(32.93% 0.149 282.8) |
| XYZ | xyz(5.4094, 3.0887, 19.7092) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.54
Royal
#0C1793
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 5.05
Dark Royal Blue
#02066F
ΔE00 6.40
Indigo
#4B0082
ΔE00 6.54
Darkblue
#00008B
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F7D #6C7D1F
analogous
#1F3D7D #301F7D #5F1F7D
triadic
#301F7D #7D301F #1F7D30
tetradic
#301F7D #7D1F3D #6C7D1F #1F7D5F
square
#301F7D #7D1F3D #6C7D1F #1F7D5F
split-complementary
#301F7D #7D5F1F #3D7D1F
monochromatic
#0A071B #1D134C #301F7D #432BAE #5F45D1
Accessibility & contrast
On white
12.98
#301F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#301F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F7D
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F7D | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301f7d; /* rgb */ color: rgb(48, 31, 125); /* oklch */ color: oklch(32.9% 0.149 282.8);
Tailwind
colors: {
custom: {
50: '#725da4',
500: '#301f7d',
950: '#000000',
},
}SCSS
$custom: #301f7d; $custom-light: #725da4; $custom-dark: #000000;
JSON
{
"hex": "#301f7d",
"rgb": {
"r": 48,
"g": 31,
"b": 125
},
"hsl": {
"h": 250.851,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.32927,
"c": 0.14889,
"h": 282.8
},
"luminance": 0.03089
}Semantic roles & 50–950 ramp
primary
#301F7D
secondary
#9DB048
accent
#E344C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F