#30187C#30187C
#30187C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.155 H 284.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).
Color values
| HEX | #30187C |
|---|---|
| RGB | rgb(48, 24, 124) |
| HSL | hsl(254, 68%, 29%) |
| HSV | hsv(254, 81%, 49%) |
| CMYK | cmyk(61.3%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(18.96, 38.92, -52.12) |
| CIE-LCH | lch(18.96, 65.05, 306.76°) |
| OKLab | oklab(31.88% 0.0385 -0.1502) |
| OKLCH | oklch(31.88% 0.155 284.4) |
| XYZ | xyz(5.1825, 2.7366, 19.3200) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.54
Midnight Blue
#191970
ΔE00 3.65
Royal
#0C1793
ΔE00 4.61
Dark Royal Blue
#02066F
ΔE00 5.38
Indigo
#4B0082
ΔE00 5.40
Navy
#000080
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30187C #647C18
analogous
#18327C #30187C #62187C
triadic
#30187C #7C3018 #187C30
tetradic
#30187C #7C1832 #647C18 #187C62
square
#30187C #7C1832 #647C18 #187C62
split-complementary
#30187C #7C6218 #327C18
monochromatic
#0A051A #1C0E49 #30187C #4422AF #5D36D8
Accessibility & contrast
On white
13.57
#30187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#30187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30187C
13.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30187C | 1.00 | 13.57 | 1.55 | 13.57 |
| #FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#01354A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30187c; /* rgb */ color: rgb(48, 24, 124); /* oklch */ color: oklch(31.9% 0.155 284.4);
Tailwind
colors: {
custom: {
50: '#7359a3',
500: '#30187c',
950: '#000000',
},
}SCSS
$custom: #30187c; $custom-light: #7359a3; $custom-dark: #000000;
JSON
{
"hex": "#30187c",
"rgb": {
"r": 48,
"g": 24,
"b": 124
},
"hsl": {
"h": 254.4,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.31883,
"c": 0.15505,
"h": 284.4
},
"luminance": 0.02737
}Semantic roles & 50–950 ramp
primary
#30187C
secondary
#95B13F
accent
#EA3DC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F