#301F85#301F85
#301F85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.159 H 281.3°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #301F85 |
|---|---|
| RGB | rgb(48, 31, 133) |
| HSL | hsl(250, 62%, 32%) |
| HSV | hsv(250, 77%, 52%) |
| CMYK | cmyk(63.9%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(21.21, 38.03, -54.10) |
| CIE-LCH | lch(21.21, 66.13, 305.11°) |
| OKLab | oklab(33.75% 0.0311 -0.156) |
| OKLCH | oklch(33.75% 0.159 281.3) |
| XYZ | xyz(5.9412, 3.3014, 22.5099) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.86
Midnight Blue
#191970
ΔE00 4.29
Indigo (survey)
#380282
ΔE00 4.84
Darkblue
#00008B
ΔE00 6.08
Cobalt Blue
#030AA7
ΔE00 6.13
Navy
#000080
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F85 #74851F
analogous
#1F4185 #301F85 #631F85
triadic
#301F85 #85301F #1F8530
tetradic
#301F85 #851F41 #74851F #1F8563
square
#301F85 #851F41 #74851F #1F8563
split-complementary
#301F85 #85631F #41851F
monochromatic
#0C0822 #1E1353 #301F85 #422BB7 #614AD5
Accessibility & contrast
On white
12.65
#301F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#301F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F85
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F85 | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #301f85; /* rgb */ color: rgb(48, 31, 133); /* oklch */ color: oklch(33.8% 0.159 281.3);
Tailwind
colors: {
custom: {
50: '#745daa',
500: '#301f85',
950: '#000000',
},
}SCSS
$custom: #301f85; $custom-light: #745daa; $custom-dark: #000000;
JSON
{
"hex": "#301f85",
"rgb": {
"r": 48,
"g": 31,
"b": 133
},
"hsl": {
"h": 250,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33752,
"c": 0.15911,
"h": 281.3
},
"luminance": 0.03302
}Semantic roles & 50–950 ramp
primary
#301F85
secondary
#A5B749
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F