#30157F#30157F
#30157F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 284.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #30157F |
|---|---|
| RGB | rgb(48, 21, 127) |
| HSL | hsl(255, 72%, 29%) |
| HSV | hsv(255, 83%, 50%) |
| CMYK | cmyk(62.2%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(18.79, 41.28, -54.31) |
| CIE-LCH | lch(18.79, 68.22, 307.24°) |
| OKLab | oklab(31.86% 0.0394 -0.1565) |
| OKLCH | oklch(31.86% 0.161 284.1) |
| XYZ | xyz(5.3167, 2.6967, 20.3149) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.85
Midnight Blue
#191970
ΔE00 4.12
Royal
#0C1793
ΔE00 4.26
Darkblue
#00008B
ΔE00 4.86
Navy
#000080
ΔE00 4.90
Indigo
#4B0082
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30157F #647F15
analogous
#152F7F #30157F #65157F
triadic
#30157F #7F3015 #157F30
tetradic
#30157F #7F152F #647F15 #157F65
square
#30157F #7F152F #647F15 #157F65
split-complementary
#30157F #7F6515 #2F7F15
monochromatic
#0A041A #1C0C4A #30157F #441EB4 #5D31DD
Accessibility & contrast
On white
13.64
#30157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#30157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30157F
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30157F | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30157f; /* rgb */ color: rgb(48, 21, 127); /* oklch */ color: oklch(31.9% 0.161 284.1);
Tailwind
colors: {
custom: {
50: '#7457a5',
500: '#30157f',
950: '#000000',
},
}SCSS
$custom: #30157f; $custom-light: #7457a5; $custom-dark: #000000;
JSON
{
"hex": "#30157f",
"rgb": {
"r": 48,
"g": 21,
"b": 127
},
"hsl": {
"h": 255.283,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.31863,
"c": 0.16143,
"h": 284.1
},
"luminance": 0.02697
}Semantic roles & 50–950 ramp
primary
#30157F
secondary
#95B43C
accent
#EE39C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F