#30197B#30197B
#30197B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 284.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #30197B |
|---|---|
| RGB | rgb(48, 25, 123) |
| HSL | hsl(254, 66%, 29%) |
| HSV | hsv(254, 80%, 48%) |
| CMYK | cmyk(61%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(19.03, 38.10, -51.36) |
| CIE-LCH | lch(19.03, 63.95, 306.57°) |
| OKLab | oklab(31.9% 0.0381 -0.148) |
| OKLCH | oklch(31.9% 0.153 284.4) |
| XYZ | xyz(5.1406, 2.7534, 18.9956) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.52
Indigo (survey)
#380282
ΔE00 3.79
Royal
#0C1793
ΔE00 4.75
Dark Royal Blue
#02066F
ΔE00 5.47
Indigo
#4B0082
ΔE00 5.57
Deep Blue
#040273
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30197B #647B19
analogous
#19337B #30197B #61197B
triadic
#30197B #7B3019 #197B30
tetradic
#30197B #7B1933 #647B19 #197B61
square
#30197B #7B1933 #647B19 #197B61
split-complementary
#30197B #7B6119 #337B19
monochromatic
#0A0519 #1C0F48 #30197B #4423AE #5D38D7
Accessibility & contrast
On white
13.54
#30197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#30197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30197B
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30197B | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#033549
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30197b; /* rgb */ color: rgb(48, 25, 123); /* oklch */ color: oklch(31.9% 0.153 284.4);
Tailwind
colors: {
custom: {
50: '#7359a2',
500: '#30197b',
950: '#000000',
},
}SCSS
$custom: #30197b; $custom-light: #7359a2; $custom-dark: #000000;
JSON
{
"hex": "#30197b",
"rgb": {
"r": 48,
"g": 25,
"b": 123
},
"hsl": {
"h": 254.082,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.31901,
"c": 0.15282,
"h": 284.4
},
"luminance": 0.02754
}Semantic roles & 50–950 ramp
primary
#30197B
secondary
#95AF40
accent
#E93FC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F