#30177E#30177E
#30177E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.158 H 284.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).
Color values
| HEX | #30177E |
|---|---|
| RGB | rgb(48, 23, 126) |
| HSL | hsl(255, 69%, 29%) |
| HSV | hsv(255, 82%, 49%) |
| CMYK | cmyk(61.9%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(19.00, 40.03, -53.32) |
| CIE-LCH | lch(19.00, 66.67, 306.90°) |
| OKLab | oklab(31.98% 0.0385 -0.1537) |
| OKLCH | oklch(31.98% 0.158 284.1) |
| XYZ | xyz(5.2901, 2.7472, 19.9861) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.88
Royal
#0C1793
ΔE00 4.35
Darkblue
#00008B
ΔE00 5.18
Navy
#000080
ΔE00 5.18
Indigo
#4B0082
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30177E #657E17
analogous
#17327E #30177E #64177E
triadic
#30177E #7E3017 #177E30
tetradic
#30177E #7E1732 #657E17 #177E64
square
#30177E #7E1732 #657E17 #177E64
split-complementary
#30177E #7E6417 #327E17
monochromatic
#0A051A #1C0E4A #30177E #4420B2 #5D35DA
Accessibility & contrast
On white
13.55
#30177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#30177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30177E
13.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30177E | 1.00 | 13.55 | 1.55 | 13.55 |
| #FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30177e; /* rgb */ color: rgb(48, 23, 126); /* oklch */ color: oklch(32.0% 0.158 284.1);
Tailwind
colors: {
custom: {
50: '#7358a4',
500: '#30177e',
950: '#000000',
},
}SCSS
$custom: #30177e; $custom-light: #7358a4; $custom-dark: #000000;
JSON
{
"hex": "#30177e",
"rgb": {
"r": 48,
"g": 23,
"b": 126
},
"hsl": {
"h": 254.563,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.3198,
"c": 0.15843,
"h": 284.1
},
"luminance": 0.02748
}Semantic roles & 50–950 ramp
primary
#30177E
secondary
#96B33E
accent
#EC3CC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F