#301C6F#301C6F
#301C6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.134 H 286.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).
Color values
| HEX | #301C6F |
|---|---|
| RGB | rgb(48, 28, 111) |
| HSL | hsl(254, 60%, 27%) |
| HSV | hsv(254, 75%, 44%) |
| CMYK | cmyk(56.8%, 74.8%, 0%, 56.5%) |
| CIE-LAB | lab(18.39, 32.67, -44.68) |
| CIE-LCH | lch(18.39, 55.35, 306.17°) |
| OKLab | oklab(31.08% 0.0388 -0.1285) |
| OKLCH | oklch(31.08% 0.134 286.8) |
| XYZ | xyz(4.5026, 2.6063, 15.3017) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.31
Indigo (survey)
#380282
ΔE00 5.55
Dark Indigo
#1F0954
ΔE00 5.75
Dark Royal Blue
#02066F
ΔE00 6.11
Darkblue (survey)
#030764
ΔE00 6.19
Deep Blue
#040273
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301C6F #5B6F1C
analogous
#1C326F #301C6F #5A1C6F
triadic
#301C6F #6F301C #1C6F30
tetradic
#301C6F #6F1C32 #5B6F1C #1C6F5A
square
#301C6F #6F1C32 #5B6F1C #1C6F5A
split-complementary
#301C6F #6F5A1C #326F1C
monochromatic
#0B0618 #1B103E #301C6F #4528A0 #5C38CD
Accessibility & contrast
On white
13.80
#301C6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#301C6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301C6F
13.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301C6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301C6F | 1.00 | 13.80 | 1.52 | 13.80 |
| #FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#163243
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #301c6f; /* rgb */ color: rgb(48, 28, 111); /* oklch */ color: oklch(31.1% 0.134 286.8);
Tailwind
colors: {
custom: {
50: '#705a99',
500: '#301c6f',
950: '#000000',
},
}SCSS
$custom: #301c6f; $custom-light: #705a99; $custom-dark: #000000;
JSON
{
"hex": "#301c6f",
"rgb": {
"r": 48,
"g": 28,
"b": 111
},
"hsl": {
"h": 254.458,
"s": 59.712,
"l": 27.255
},
"oklch": {
"l": 0.31083,
"c": 0.1342,
"h": 286.8
},
"luminance": 0.02607
}Semantic roles & 50–950 ramp
primary
#301C6F
secondary
#8CA443
accent
#E345BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E