#4A308E#4A308E
#4A308E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.148 H 290.8°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #4A308E |
|---|---|
| RGB | rgb(74, 48, 142) |
| HSL | hsl(257, 49%, 37%) |
| HSV | hsv(257, 66%, 56%) |
| CMYK | cmyk(47.9%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(28.17, 35.47, -48.22) |
| CIE-LCH | lch(28.17, 59.86, 306.33°) |
| OKLab | oklab(39.61% 0.0525 -0.138) |
| OKLCH | oklch(39.61% 0.148 290.8) |
| XYZ | xyz(8.7621, 5.5224, 26.1902) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.17
Rebeccapurple
#663399
ΔE00 5.38
Blueberry
#464196
ΔE00 5.39
Indigo Blue
#3A18B1
ΔE00 7.33
Ocean Blue
#4F42B5
ΔE00 7.46
Sapphire (survey)
#2138AB
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A308E #748E30
analogous
#30458E #4A308E #79308E
triadic
#4A308E #8E4A30 #308E4A
tetradic
#4A308E #8E3045 #748E30 #308E79
square
#4A308E #8E3045 #748E30 #308E79
split-complementary
#4A308E #8E7930 #458E30
monochromatic
#1A1133 #322160 #4A308E #623FBC #866BCD
Accessibility & contrast
On white
9.98
#4A308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#4A308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A308E
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A308E | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#35465A
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #4a308e; /* rgb */ color: rgb(74, 48, 142); /* oklch */ color: oklch(39.6% 0.148 290.8);
Tailwind
colors: {
custom: {
50: '#836ab0',
500: '#4a308e',
950: '#000000',
},
}SCSS
$custom: #4a308e; $custom-light: #836ab0; $custom-dark: #000000;
JSON
{
"hex": "#4a308e",
"rgb": {
"r": 74,
"g": 48,
"b": 142
},
"hsl": {
"h": 256.596,
"s": 49.474,
"l": 37.255
},
"oklch": {
"l": 0.39606,
"c": 0.14763,
"h": 290.8
},
"luminance": 0.05523
}Semantic roles & 50–950 ramp
primary
#4A308E
secondary
#9FB465
accent
#D94FB3
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F