#301789#301789
#301789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.172 H 281.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #301789 |
|---|---|
| RGB | rgb(48, 23, 137) |
| HSL | hsl(253, 71%, 31%) |
| HSV | hsv(253, 83%, 54%) |
| CMYK | cmyk(65%, 83.2%, 0%, 46.3%) |
| CIE-LAB | lab(20.23, 43.35, -58.23) |
| CIE-LCH | lch(20.23, 72.60, 306.67°) |
| OKLab | oklab(33.2% 0.0348 -0.168) |
| OKLCH | oklch(33.2% 0.172 281.7) |
| XYZ | xyz(6.0393, 3.0469, 23.9319) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.24
Indigo (survey)
#380282
ΔE00 3.31
Darkblue
#00008B
ΔE00 4.67
Cobalt Blue
#030AA7
ΔE00 4.91
Midnight Blue
#191970
ΔE00 4.96
Navy
#000080
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301789 #708917
analogous
#173789 #301789 #691789
triadic
#301789 #893017 #178930
tetradic
#301789 #891737 #708917 #178969
square
#301789 #891737 #708917 #178969
split-complementary
#301789 #896917 #378917
monochromatic
#0B0520 #1E0E55 #301789 #4220BD #603CDE
Accessibility & contrast
On white
13.05
#301789 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#301789 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301789
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301789 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301789 | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #301789; /* rgb */ color: rgb(48, 23, 137); /* oklch */ color: oklch(33.2% 0.172 281.7);
Tailwind
colors: {
custom: {
50: '#7659ad',
500: '#301789',
950: '#000000',
},
}SCSS
$custom: #301789; $custom-light: #7659ad; $custom-dark: #000000;
JSON
{
"hex": "#301789",
"rgb": {
"r": 48,
"g": 23,
"b": 137
},
"hsl": {
"h": 253.158,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.33196,
"c": 0.17158,
"h": 281.7
},
"luminance": 0.03047
}Semantic roles & 50–950 ramp
primary
#301789
secondary
#A1BD3F
accent
#EE3AC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F