#4A239F#4A239F
#4A239F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.184 H 289.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #4A239F |
|---|---|
| RGB | rgb(74, 35, 159) |
| HSL | hsl(259, 64%, 38%) |
| HSV | hsv(259, 78%, 62%) |
| CMYK | cmyk(53.5%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(27.19, 47.35, -60.26) |
| CIE-LCH | lch(27.19, 76.64, 308.16°) |
| OKLab | oklab(39.37% 0.061 -0.1733) |
| OKLCH | oklch(39.37% 0.184 289.4) |
| XYZ | xyz(9.6813, 5.1607, 33.2802) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.57
Violet Blue
#510AC9
ΔE00 5.83
Ultramarine
#2000B1
ΔE00 6.32
Rebeccapurple
#663399
ΔE00 6.34
Indigo
#4B0082
ΔE00 6.54
Indigo (survey)
#380282
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A239F #789F23
analogous
#233A9F #4A239F #88239F
triadic
#4A239F #9F4A23 #239F4A
tetradic
#4A239F #9F233A #789F23 #239F88
square
#4A239F #9F233A #789F23 #239F88
split-complementary
#4A239F #9F8823 #3A9F23
monochromatic
#1B0D3B #33186D #4A239F #612ED1 #8760DC
Accessibility & contrast
On white
10.33
#4A239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#4A239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A239F
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A239F | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#2A4660
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4a239f; /* rgb */ color: rgb(74, 35, 159); /* oklch */ color: oklch(39.4% 0.184 289.4);
Tailwind
colors: {
custom: {
50: '#8663bc',
500: '#4a239f',
950: '#000000',
},
}SCSS
$custom: #4a239f; $custom-light: #8663bc; $custom-dark: #000000;
JSON
{
"hex": "#4a239f",
"rgb": {
"r": 74,
"g": 35,
"b": 159
},
"hsl": {
"h": 258.871,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.39368,
"c": 0.18369,
"h": 289.4
},
"luminance": 0.05161
}Semantic roles & 50–950 ramp
primary
#4A239F
secondary
#A2C15D
accent
#E741B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81