#30147F#30147F
#30147F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.162 H 284.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #30147F |
|---|---|
| RGB | rgb(48, 20, 127) |
| HSL | hsl(256, 73%, 29%) |
| HSV | hsv(256, 84%, 50%) |
| CMYK | cmyk(62.2%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.63, 41.74, -54.56) |
| CIE-LCH | lch(18.63, 68.70, 307.41°) |
| OKLab | oklab(31.76% 0.04 -0.1573) |
| OKLCH | oklch(31.76% 0.162 284.3) |
| XYZ | xyz(5.2987, 2.6606, 20.3089) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.68
Midnight Blue
#191970
ΔE00 4.21
Royal
#0C1793
ΔE00 4.29
Darkblue
#00008B
ΔE00 4.75
Navy
#000080
ΔE00 4.78
Indigo
#4B0082
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30147F #637F14
analogous
#142E7F #30147F #66147F
triadic
#30147F #7F3014 #147F30
tetradic
#30147F #7F142E #637F14 #147F66
square
#30147F #7F142E #637F14 #147F66
split-complementary
#30147F #7F6614 #2E7F14
monochromatic
#0A041A #1C0C4A #30147F #441CB4 #5D2FDE
Accessibility & contrast
On white
13.71
#30147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#30147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30147F
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30147F | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #30147f; /* rgb */ color: rgb(48, 20, 127); /* oklch */ color: oklch(31.8% 0.162 284.3);
Tailwind
colors: {
custom: {
50: '#7457a5',
500: '#30147f',
950: '#000000',
},
}SCSS
$custom: #30147f; $custom-light: #7457a5; $custom-dark: #000000;
JSON
{
"hex": "#30147f",
"rgb": {
"r": 48,
"g": 20,
"b": 127
},
"hsl": {
"h": 255.701,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.31756,
"c": 0.16229,
"h": 284.3
},
"luminance": 0.02661
}Semantic roles & 50–950 ramp
primary
#30147F
secondary
#94B43B
accent
#EF38C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F