#301F7C#301F7C
#301F7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.148 H 283.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #301F7C |
|---|---|
| RGB | rgb(48, 31, 124) |
| HSL | hsl(251, 60%, 30%) |
| HSV | hsv(251, 75%, 49%) |
| CMYK | cmyk(61.3%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(20.30, 35.13, -49.91) |
| CIE-LCH | lch(20.30, 61.03, 305.14°) |
| OKLab | oklab(32.82% 0.0332 -0.1438) |
| OKLCH | oklch(32.82% 0.148 283) |
| XYZ | xyz(5.3459, 3.0632, 19.3744) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.47
Royal
#0C1793
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 6.38
Indigo
#4B0082
ΔE00 6.57
Deep Blue
#040273
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F7C #6B7C1F
analogous
#1F3C7C #301F7C #5E1F7C
triadic
#301F7C #7C301F #1F7C30
tetradic
#301F7C #7C1F3C #6B7C1F #1F7C5E
square
#301F7C #7C1F3C #6B7C1F #1F7C5E
split-complementary
#301F7C #7C5E1F #3C7C1F
monochromatic
#0A071A #1D134B #301F7C #432BAD #5E45D0
Accessibility & contrast
On white
13.02
#301F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#301F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F7C
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F7C | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301f7c; /* rgb */ color: rgb(48, 31, 124); /* oklch */ color: oklch(32.8% 0.148 283.0);
Tailwind
colors: {
custom: {
50: '#725da3',
500: '#301f7c',
950: '#000000',
},
}SCSS
$custom: #301f7c; $custom-light: #725da3; $custom-dark: #000000;
JSON
{
"hex": "#301f7c",
"rgb": {
"r": 48,
"g": 31,
"b": 124
},
"hsl": {
"h": 250.968,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.32825,
"c": 0.1476,
"h": 283
},
"luminance": 0.03064
}Semantic roles & 50–950 ramp
primary
#301F7C
secondary
#9CAF48
accent
#E345C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F