#301F6F#301F6F
#301F6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.130 H 286.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #301F6F |
|---|---|
| RGB | rgb(48, 31, 111) |
| HSL | hsl(253, 56%, 28%) |
| HSV | hsv(253, 72%, 44%) |
| CMYK | cmyk(56.8%, 72.1%, 0%, 56.5%) |
| CIE-LAB | lab(19.04, 30.89, -43.63) |
| CIE-LCH | lch(19.04, 53.45, 305.30°) |
| OKLab | oklab(31.54% 0.0359 -0.1254) |
| OKLCH | oklch(31.54% 0.13 286) |
| XYZ | xyz(4.5773, 2.7558, 15.3266) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.42
Dark Indigo
#1F0954
ΔE00 6.21
Indigo (survey)
#380282
ΔE00 6.25
Dark Royal Blue
#02066F
ΔE00 6.68
Darkblue (survey)
#030764
ΔE00 6.69
Royal
#0C1793
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F6F #5E6F1F
analogous
#1F366F #301F6F #581F6F
triadic
#301F6F #6F301F #1F6F30
tetradic
#301F6F #6F1F36 #5E6F1F #1F6F58
square
#301F6F #6F1F36 #5E6F1F #1F6F58
split-complementary
#301F6F #6F581F #366F1F
monochromatic
#0A0718 #1B123F #301F6F #452C9F #5C3FC9
Accessibility & contrast
On white
13.54
#301F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#301F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F6F
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F6F | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#153444
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #301f6f; /* rgb */ color: rgb(48, 31, 111); /* oklch */ color: oklch(31.5% 0.130 286.0);
Tailwind
colors: {
custom: {
50: '#705c99',
500: '#301f6f',
950: '#000000',
},
}SCSS
$custom: #301f6f; $custom-light: #705c99; $custom-dark: #000000;
JSON
{
"hex": "#301f6f",
"rgb": {
"r": 48,
"g": 31,
"b": 111
},
"hsl": {
"h": 252.75,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.31544,
"c": 0.13044,
"h": 286
},
"luminance": 0.02756
}Semantic roles & 50–950 ramp
primary
#301F6F
secondary
#8FA347
accent
#E048BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E