#4A51CC#4A51CC
#4A51CC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.187 H 274.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #4A51CC |
|---|---|
| RGB | rgb(74, 81, 204) |
| HSL | hsl(237, 56%, 55%) |
| HSV | hsv(237, 64%, 80%) |
| CMYK | cmyk(63.7%, 60.3%, 0%, 20%) |
| CIE-LAB | lab(40.73, 35.29, -64.77) |
| CIE-LCH | lch(40.73, 73.76, 298.59°) |
| OKLab | oklab(50.33% 0.0161 -0.1865) |
| OKLCH | oklch(50.33% 0.187 274.9) |
| XYZ | xyz(16.6620, 11.6989, 58.4951) |
| Luminance | 0.1170 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.73
Iris
#6258C4
ΔE00 4.21
Blue (survey)
#0343DF
ΔE00 5.46
Blue Blue
#2242C7
ΔE00 5.47
Slate Blue
#6A5ACD
ΔE00 5.51
Ocean Blue
#4F42B5
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A51CC #CCC54A
analogous
#4A92CC #4A51CC #844ACC
triadic
#4A51CC #CC4A51 #51CC4A
tetradic
#4A51CC #CC4A92 #CCC54A #4ACC84
square
#4A51CC #CC4A92 #CCC54A #4ACC84
split-complementary
#4A51CC #CC844A #92CC4A
monochromatic
#222779 #3036A9 #4A51CC #7A7FD9 #A9ADE7
Accessibility & contrast
On white
6.29
#4A51CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#4A51CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4A51CC
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A51CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A51CC | 1.00 | 6.29 | 3.34 | 6.29 |
| #FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#006F87
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #4a51cc; /* rgb */ color: rgb(74, 81, 204); /* oklch */ color: oklch(50.3% 0.187 274.9);
Tailwind
colors: {
custom: {
50: '#8a82dc',
500: '#4a51cc',
950: '#000000',
},
}SCSS
$custom: #4a51cc; $custom-light: #8a82dc; $custom-dark: #000000;
JSON
{
"hex": "#4a51cc",
"rgb": {
"r": 74,
"g": 81,
"b": 204
},
"hsl": {
"h": 236.769,
"s": 56.034,
"l": 54.51
},
"oklch": {
"l": 0.50325,
"c": 0.1872,
"h": 274.9
},
"luminance": 0.117
}Semantic roles & 50–950 ramp
primary
#4A51CC
secondary
#D4D19D
accent
#D748DF
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83