#301F7B#301F7B
#301F7B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.146 H 283.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #301F7B |
|---|---|
| RGB | rgb(48, 31, 123) |
| HSL | hsl(251, 60%, 30%) |
| HSV | hsv(251, 75%, 48%) |
| CMYK | cmyk(61%, 74.8%, 0%, 51.8%) |
| CIE-LAB | lab(20.20, 34.80, -49.44) |
| CIE-LCH | lch(20.20, 60.46, 305.14°) |
| OKLab | oklab(32.72% 0.0335 -0.1424) |
| OKLCH | oklch(32.72% 0.146 283.2) |
| XYZ | xyz(5.2830, 3.0381, 19.0431) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Royal
#0C1793
ΔE00 5.06
Indigo (survey)
#380282
ΔE00 5.16
Dark Royal Blue
#02066F
ΔE00 6.37
Indigo
#4B0082
ΔE00 6.61
Deep Blue
#040273
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F7B #6A7B1F
analogous
#1F3C7B #301F7B #5E1F7B
triadic
#301F7B #7B301F #1F7B30
tetradic
#301F7B #7B1F3C #6A7B1F #1F7B5E
square
#301F7B #7B1F3C #6A7B1F #1F7B5E
split-complementary
#301F7B #7B5E1F #3C7B1F
monochromatic
#0A0619 #1D134A #301F7B #432BAC #5E44D0
Accessibility & contrast
On white
13.06
#301F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#301F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F7B
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F7B | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#02384B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301f7b; /* rgb */ color: rgb(48, 31, 123); /* oklch */ color: oklch(32.7% 0.146 283.2);
Tailwind
colors: {
custom: {
50: '#725da2',
500: '#301f7b',
950: '#000000',
},
}SCSS
$custom: #301f7b; $custom-light: #725da2; $custom-dark: #000000;
JSON
{
"hex": "#301f7b",
"rgb": {
"r": 48,
"g": 31,
"b": 123
},
"hsl": {
"h": 251.087,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.32724,
"c": 0.14631,
"h": 283.2
},
"luminance": 0.03038
}Semantic roles & 50–950 ramp
primary
#301F7B
secondary
#9BAE48
accent
#E345C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F