#301D6F#301D6F
#301D6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.133 H 286.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).
Color values
| HEX | #301D6F |
|---|---|
| RGB | rgb(48, 29, 111) |
| HSL | hsl(254, 59%, 27%) |
| HSV | hsv(254, 74%, 44%) |
| CMYK | cmyk(56.8%, 73.9%, 0%, 56.5%) |
| CIE-LAB | lab(18.60, 32.08, -44.34) |
| CIE-LCH | lch(18.60, 54.73, 305.89°) |
| OKLab | oklab(31.23% 0.0378 -0.1275) |
| OKLCH | oklch(31.23% 0.133 286.5) |
| XYZ | xyz(4.5267, 2.6546, 15.3097) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.33
Indigo (survey)
#380282
ΔE00 5.78
Dark Indigo
#1F0954
ΔE00 5.89
Dark Royal Blue
#02066F
ΔE00 6.29
Darkblue (survey)
#030764
ΔE00 6.34
Deep Blue
#040273
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301D6F #5C6F1D
analogous
#1D336F #301D6F #591D6F
triadic
#301D6F #6F301D #1D6F30
tetradic
#301D6F #6F1D33 #5C6F1D #1D6F59
square
#301D6F #6F1D33 #5C6F1D #1D6F59
split-complementary
#301D6F #6F591D #336F1D
monochromatic
#0A0618 #1B103E #301D6F #452AA0 #5C3BCC
Accessibility & contrast
On white
13.72
#301D6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#301D6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301D6F
13.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301D6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301D6F | 1.00 | 13.72 | 1.53 | 13.72 |
| #FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#153343
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #301d6f; /* rgb */ color: rgb(48, 29, 111); /* oklch */ color: oklch(31.2% 0.133 286.5);
Tailwind
colors: {
custom: {
50: '#705b99',
500: '#301d6f',
950: '#000000',
},
}SCSS
$custom: #301d6f; $custom-light: #705b99; $custom-dark: #000000;
JSON
{
"hex": "#301d6f",
"rgb": {
"r": 48,
"g": 29,
"b": 111
},
"hsl": {
"h": 253.902,
"s": 58.571,
"l": 27.451
},
"oklch": {
"l": 0.31233,
"c": 0.13297,
"h": 286.5
},
"luminance": 0.02655
}Semantic roles & 50–950 ramp
primary
#301D6F
secondary
#8DA344
accent
#E246BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E