#30197C#30197C
#30197C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.154 H 284.2°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #30197C |
|---|---|
| RGB | rgb(48, 25, 124) |
| HSL | hsl(254, 66%, 29%) |
| HSV | hsv(254, 80%, 49%) |
| CMYK | cmyk(61.3%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(19.13, 38.42, -51.82) |
| CIE-LCH | lch(19.13, 64.51, 306.55°) |
| OKLab | oklab(32.01% 0.0378 -0.1493) |
| OKLCH | oklch(32.01% 0.154 284.2) |
| XYZ | xyz(5.2035, 2.7785, 19.3270) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.59
Indigo (survey)
#380282
ΔE00 3.74
Royal
#0C1793
ΔE00 4.62
Dark Royal Blue
#02066F
ΔE00 5.50
Indigo
#4B0082
ΔE00 5.54
Navy
#000080
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30197C #657C19
analogous
#19347C #30197C #62197C
triadic
#30197C #7C3019 #197C30
tetradic
#30197C #7C1934 #657C19 #197C62
square
#30197C #7C1934 #657C19 #197C62
split-complementary
#30197C #7C6219 #347C19
monochromatic
#0A0519 #1C0F49 #30197C #4423AF #5D38D7
Accessibility & contrast
On white
13.50
#30197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#30197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30197C
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30197C | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#01364A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30197c; /* rgb */ color: rgb(48, 25, 124); /* oklch */ color: oklch(32.0% 0.154 284.2);
Tailwind
colors: {
custom: {
50: '#7359a3',
500: '#30197c',
950: '#000000',
},
}SCSS
$custom: #30197c; $custom-light: #7359a3; $custom-dark: #000000;
JSON
{
"hex": "#30197c",
"rgb": {
"r": 48,
"g": 25,
"b": 124
},
"hsl": {
"h": 253.939,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.32008,
"c": 0.15405,
"h": 284.2
},
"luminance": 0.02779
}Semantic roles & 50–950 ramp
primary
#30197C
secondary
#96B040
accent
#E93EC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F