#30197F#30197F
#30197F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.158 H 283.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).
Color values
| HEX | #30197F |
|---|---|
| RGB | rgb(48, 25, 127) |
| HSL | hsl(254, 67%, 30%) |
| HSV | hsv(254, 80%, 50%) |
| CMYK | cmyk(62.2%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.46, 39.34, -53.20) |
| CIE-LCH | lch(19.46, 66.17, 306.48°) |
| OKLab | oklab(32.33% 0.0369 -0.1534) |
| OKLCH | oklch(32.33% 0.158 283.5) |
| XYZ | xyz(5.3961, 2.8556, 20.3414) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.61
Midnight Blue
#191970
ΔE00 3.82
Royal
#0C1793
ΔE00 4.23
Darkblue
#00008B
ΔE00 5.38
Navy
#000080
ΔE00 5.44
Indigo
#4B0082
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30197F #687F19
analogous
#19357F #30197F #63197F
triadic
#30197F #7F3019 #197F30
tetradic
#30197F #7F1935 #687F19 #197F63
square
#30197F #7F1935 #687F19 #197F63
split-complementary
#30197F #7F6319 #357F19
monochromatic
#0A051A #1D0F4C #30197F #4323B2 #5E3AD8
Accessibility & contrast
On white
13.37
#30197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#30197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30197F
13.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30197F | 1.00 | 13.37 | 1.57 | 13.37 |
| #FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #30197f; /* rgb */ color: rgb(48, 25, 127); /* oklch */ color: oklch(32.3% 0.158 283.5);
Tailwind
colors: {
custom: {
50: '#7359a5',
500: '#30197f',
950: '#000000',
},
}SCSS
$custom: #30197f; $custom-light: #7359a5; $custom-dark: #000000;
JSON
{
"hex": "#30197f",
"rgb": {
"r": 48,
"g": 25,
"b": 127
},
"hsl": {
"h": 253.529,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.32329,
"c": 0.15774,
"h": 283.5
},
"luminance": 0.02856
}Semantic roles & 50–950 ramp
primary
#30197F
secondary
#99B341
accent
#EA3EC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F