#30187F#30187F
#30187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 283.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #30187F |
|---|---|
| RGB | rgb(48, 24, 127) |
| HSL | hsl(254, 68%, 30%) |
| HSV | hsv(254, 81%, 50%) |
| CMYK | cmyk(62.2%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(19.28, 39.84, -53.49) |
| CIE-LCH | lch(19.28, 66.70, 306.68°) |
| OKLab | oklab(32.21% 0.0375 -0.1542) |
| OKLCH | oklch(32.21% 0.159 283.7) |
| XYZ | xyz(5.3751, 2.8136, 20.3344) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.41
Midnight Blue
#191970
ΔE00 3.89
Royal
#0C1793
ΔE00 4.23
Darkblue
#00008B
ΔE00 5.24
Navy
#000080
ΔE00 5.29
Indigo
#4B0082
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30187F #677F18
analogous
#18337F #30187F #64187F
triadic
#30187F #7F3018 #187F30
tetradic
#30187F #7F1833 #677F18 #187F64
square
#30187F #7F1833 #677F18 #187F64
split-complementary
#30187F #7F6418 #337F18
monochromatic
#0A051A #1D0E4C #30187F #4322B2 #5E38D9
Accessibility & contrast
On white
13.44
#30187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#30187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30187F
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30187F | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #30187f; /* rgb */ color: rgb(48, 24, 127); /* oklch */ color: oklch(32.2% 0.159 283.7);
Tailwind
colors: {
custom: {
50: '#7359a5',
500: '#30187f',
950: '#000000',
},
}SCSS
$custom: #30187f; $custom-light: #7359a5; $custom-dark: #000000;
JSON
{
"hex": "#30187f",
"rgb": {
"r": 48,
"g": 24,
"b": 127
},
"hsl": {
"h": 253.981,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.32207,
"c": 0.1587,
"h": 283.7
},
"luminance": 0.02814
}Semantic roles & 50–950 ramp
primary
#30187F
secondary
#98B33F
accent
#EB3DC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F