#30177C#30177C
#30177C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.156 H 284.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #30177C |
|---|---|
| RGB | rgb(48, 23, 124) |
| HSL | hsl(255, 69%, 29%) |
| HSV | hsv(255, 81%, 49%) |
| CMYK | cmyk(61.3%, 81.5%, 0%, 51.4%) |
| CIE-LAB | lab(18.78, 39.42, -52.40) |
| CIE-LCH | lch(18.78, 65.58, 306.96°) |
| OKLab | oklab(31.76% 0.0391 -0.151) |
| OKLCH | oklch(31.76% 0.156 284.5) |
| XYZ | xyz(5.1623, 2.6961, 19.3132) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.34
Midnight Blue
#191970
ΔE00 3.73
Royal
#0C1793
ΔE00 4.61
Navy
#000080
ΔE00 5.26
Indigo
#4B0082
ΔE00 5.27
Dark Royal Blue
#02066F
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30177C #637C17
analogous
#17317C #30177C #63177C
triadic
#30177C #7C3017 #177C30
tetradic
#30177C #7C1731 #637C17 #177C63
square
#30177C #7C1731 #637C17 #177C63
split-complementary
#30177C #7C6317 #317C17
monochromatic
#0A051A #1C0D48 #30177C #4421B0 #5D34D9
Accessibility & contrast
On white
13.64
#30177C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#30177C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30177C
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30177C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30177C | 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)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#013549
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30177c; /* rgb */ color: rgb(48, 23, 124); /* oklch */ color: oklch(31.8% 0.156 284.5);
Tailwind
colors: {
custom: {
50: '#7358a3',
500: '#30177c',
950: '#000000',
},
}SCSS
$custom: #30177c; $custom-light: #7358a3; $custom-dark: #000000;
JSON
{
"hex": "#30177c",
"rgb": {
"r": 48,
"g": 23,
"b": 124
},
"hsl": {
"h": 254.851,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.31763,
"c": 0.15601,
"h": 284.5
},
"luminance": 0.02696
}Semantic roles & 50–950 ramp
primary
#30177C
secondary
#94B13E
accent
#EC3CC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F