#301F7F#301F7F
#301F7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.151 H 282.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #301F7F |
|---|---|
| RGB | rgb(48, 31, 127) |
| HSL | hsl(251, 61%, 31%) |
| HSV | hsv(251, 76%, 50%) |
| CMYK | cmyk(62.2%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(20.60, 36.10, -51.32) |
| CIE-LCH | lch(20.60, 62.75, 305.12°) |
| OKLab | oklab(33.13% 0.0325 -0.1479) |
| OKLCH | oklch(33.13% 0.151 282.4) |
| XYZ | xyz(5.5385, 3.1403, 20.3888) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.70
Royal
#0C1793
ΔE00 4.53
Indigo (survey)
#380282
ΔE00 4.96
Darkblue
#00008B
ΔE00 6.42
Dark Royal Blue
#02066F
ΔE00 6.44
Indigo
#4B0082
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F7F #6E7F1F
analogous
#1F3E7F #301F7F #601F7F
triadic
#301F7F #7F301F #1F7F30
tetradic
#301F7F #7F1F3E #6E7F1F #1F7F60
square
#301F7F #7F1F3E #6E7F1F #1F7F60
split-complementary
#301F7F #7F601F #3E7F1F
monochromatic
#0B071D #1D134E #301F7F #432BB0 #5F46D2
Accessibility & contrast
On white
12.90
#301F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#301F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F7F
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F7F | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #301f7f; /* rgb */ color: rgb(48, 31, 127); /* oklch */ color: oklch(33.1% 0.151 282.4);
Tailwind
colors: {
custom: {
50: '#735da5',
500: '#301f7f',
950: '#000000',
},
}SCSS
$custom: #301f7f; $custom-light: #735da5; $custom-dark: #000000;
JSON
{
"hex": "#301f7f",
"rgb": {
"r": 48,
"g": 31,
"b": 127
},
"hsl": {
"h": 250.625,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.33131,
"c": 0.15147,
"h": 282.4
},
"luminance": 0.03141
}Semantic roles & 50–950 ramp
primary
#301F7F
secondary
#9FB248
accent
#E444C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F