#30187E#30187E
#30187E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.157 H 283.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).
Color values
| HEX | #30187E |
|---|---|
| RGB | rgb(48, 24, 126) |
| HSL | hsl(254, 68%, 29%) |
| HSV | hsv(254, 81%, 49%) |
| CMYK | cmyk(61.9%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(19.17, 39.54, -53.03) |
| CIE-LCH | lch(19.17, 66.15, 306.71°) |
| OKLab | oklab(32.1% 0.0378 -0.1529) |
| OKLCH | oklch(32.1% 0.157 283.9) |
| XYZ | xyz(5.3103, 2.7877, 19.9929) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.45
Midnight Blue
#191970
ΔE00 3.80
Royal
#0C1793
ΔE00 4.35
Darkblue
#00008B
ΔE00 5.31
Navy
#000080
ΔE00 5.32
Indigo
#4B0082
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30187E #667E18
analogous
#18337E #30187E #63187E
triadic
#30187E #7E3018 #187E30
tetradic
#30187E #7E1833 #667E18 #187E63
square
#30187E #7E1833 #667E18 #187E63
split-complementary
#30187E #7E6318 #337E18
monochromatic
#0A051A #1C0E4B #30187E #4422B1 #5D37D9
Accessibility & contrast
On white
13.48
#30187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#30187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30187E
13.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30187E | 1.00 | 13.48 | 1.56 | 13.48 |
| #FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #30187e; /* rgb */ color: rgb(48, 24, 126); /* oklch */ color: oklch(32.1% 0.157 283.9);
Tailwind
colors: {
custom: {
50: '#7359a4',
500: '#30187e',
950: '#000000',
},
}SCSS
$custom: #30187e; $custom-light: #7359a4; $custom-dark: #000000;
JSON
{
"hex": "#30187e",
"rgb": {
"r": 48,
"g": 24,
"b": 126
},
"hsl": {
"h": 254.118,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.32099,
"c": 0.15748,
"h": 283.9
},
"luminance": 0.02788
}Semantic roles & 50–950 ramp
primary
#30187E
secondary
#97B23F
accent
#EB3DC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F