#30117F#30117F
#30117F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.165 H 284.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #30117F |
|---|---|
| RGB | rgb(48, 17, 127) |
| HSL | hsl(257, 76%, 28%) |
| HSV | hsv(257, 87%, 50%) |
| CMYK | cmyk(62.2%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(18.19, 43.02, -55.29) |
| CIE-LCH | lch(18.19, 70.05, 307.89°) |
| OKLab | oklab(31.46% 0.0416 -0.1593) |
| OKLCH | oklch(31.46% 0.165 284.6) |
| XYZ | xyz(5.2490, 2.5612, 20.2923) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.22
Royal
#0C1793
ΔE00 4.40
Darkblue
#00008B
ΔE00 4.46
Navy
#000080
ΔE00 4.48
Midnight Blue
#191970
ΔE00 4.48
Indigo
#4B0082
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30117F #607F11
analogous
#11297F #30117F #67117F
triadic
#30117F #7F3011 #117F30
tetradic
#30117F #7F1129 #607F11 #117F67
square
#30117F #7F1129 #607F11 #117F67
split-complementary
#30117F #7F6711 #297F11
monochromatic
#0A041B #1C0A49 #30117F #4418B5 #5D28E2
Accessibility & contrast
On white
13.89
#30117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#30117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30117F
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30117F | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #30117f; /* rgb */ color: rgb(48, 17, 127); /* oklch */ color: oklch(31.5% 0.165 284.6);
Tailwind
colors: {
custom: {
50: '#7455a5',
500: '#30117f',
950: '#000000',
},
}SCSS
$custom: #30117f; $custom-light: #7455a5; $custom-dark: #000000;
JSON
{
"hex": "#30117f",
"rgb": {
"r": 48,
"g": 17,
"b": 127
},
"hsl": {
"h": 256.909,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.31456,
"c": 0.1647,
"h": 284.6
},
"luminance": 0.02562
}Semantic roles & 50–950 ramp
primary
#30117F
secondary
#91B537
accent
#F335BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F