#30177F#30177F
#30177F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 283.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #30177F |
|---|---|
| RGB | rgb(48, 23, 127) |
| HSL | hsl(254, 69%, 29%) |
| HSV | hsv(254, 82%, 50%) |
| CMYK | cmyk(62.2%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(19.11, 40.34, -53.77) |
| CIE-LCH | lch(19.11, 67.22, 306.88°) |
| OKLab | oklab(32.09% 0.0382 -0.155) |
| OKLCH | oklch(32.09% 0.16 283.8) |
| XYZ | xyz(5.3549, 2.7731, 20.3276) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.22
Midnight Blue
#191970
ΔE00 3.96
Royal
#0C1793
ΔE00 4.23
Darkblue
#00008B
ΔE00 5.10
Navy
#000080
ΔE00 5.15
Indigo
#4B0082
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30177F #667F17
analogous
#17327F #30177F #64177F
triadic
#30177F #7F3017 #177F30
tetradic
#30177F #7F1732 #667F17 #177F64
square
#30177F #7F1732 #667F17 #177F64
split-complementary
#30177F #7F6417 #327F17
monochromatic
#0A051A #1C0E4B #30177F #4420B3 #5D36DB
Accessibility & contrast
On white
13.51
#30177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#30177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30177F
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30177F | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #30177f; /* rgb */ color: rgb(48, 23, 127); /* oklch */ color: oklch(32.1% 0.160 283.8);
Tailwind
colors: {
custom: {
50: '#7458a5',
500: '#30177f',
950: '#000000',
},
}SCSS
$custom: #30177f; $custom-light: #7458a5; $custom-dark: #000000;
JSON
{
"hex": "#30177f",
"rgb": {
"r": 48,
"g": 23,
"b": 127
},
"hsl": {
"h": 254.423,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.32089,
"c": 0.15964,
"h": 283.8
},
"luminance": 0.02773
}Semantic roles & 50–950 ramp
primary
#30177F
secondary
#97B43E
accent
#EC3CC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F