#4C40E8#4C40E8
#4C40E8 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.3% C 0.240 H 276.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).
Color values
| HEX | #4C40E8 |
|---|---|
| RGB | rgb(76, 64, 232) |
| HSL | hsl(244, 79%, 58%) |
| HSV | hsv(244, 72%, 91%) |
| CMYK | cmyk(67.2%, 72.4%, 0%, 9%) |
| CIE-LAB | lab(39.63, 54.49, -82.61) |
| CIE-LCH | lch(39.63, 98.96, 303.41°) |
| OKLab | oklab(50.3% 0.0273 -0.2387) |
| OKLCH | oklch(50.3% 0.24 276.5) |
| XYZ | xyz(19.3746, 11.0278, 77.4358) |
| Luminance | 0.1103 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 2.79
Purpley Blue
#5F34E7
ΔE00 3.20
Light Royal Blue
#3A2EFE
ΔE00 3.71
Vibrant Blue
#0339F8
ΔE00 3.73
Blurple
#5539CC
ΔE00 4.12
Burple
#6832E3
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C40E8 #DCE840
analogous
#4088E8 #4C40E8 #A040E8
triadic
#4C40E8 #E84C40 #40E84C
tetradic
#4C40E8 #E84088 #DCE840 #40E8A0
square
#4C40E8 #E84088 #DCE840 #40E8A0
split-complementary
#4C40E8 #E8A040 #88E840
monochromatic
#1C139B #2619D2 #4C40E8 #7F77EF #B2ADF5
Accessibility & contrast
On white
6.55
#4C40E8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#4C40E8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4C40E8
6.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C40E8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C40E8 | 1.00 | 6.55 | 3.21 | 6.55 |
| #FFFFFF | 6.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064ED
Deuteranopia (green-blind)
#0056E5
Tritanopia (blue-blind)
#007091
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #4c40e8; /* rgb */ color: rgb(76, 64, 232); /* oklch */ color: oklch(50.3% 0.240 276.5);
Tailwind
colors: {
custom: {
50: '#9277f1',
500: '#4c40e8',
950: '#000000',
},
}SCSS
$custom: #4c40e8; $custom-light: #9277f1; $custom-dark: #000000;
JSON
{
"hex": "#4c40e8",
"rgb": {
"r": 76,
"g": 64,
"b": 232
},
"hsl": {
"h": 244.286,
"s": 78.505,
"l": 58.039
},
"oklch": {
"l": 0.503,
"c": 0.24027,
"h": 276.5
},
"luminance": 0.11029
}Semantic roles & 50–950 ramp
primary
#4C40E8
secondary
#DFE3A0
accent
#F533E7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0917
muted
#7E7B85