#4C51CA#4C51CA
#4C51CA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.184 H 275.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #4C51CA |
|---|---|
| RGB | rgb(76, 81, 202) |
| HSL | hsl(238, 54%, 55%) |
| HSV | hsv(238, 62%, 79%) |
| CMYK | cmyk(62.4%, 59.9%, 0%, 20.8%) |
| CIE-LAB | lab(40.71, 34.93, -63.65) |
| CIE-LCH | lch(40.71, 72.60, 298.76°) |
| OKLab | oklab(50.29% 0.0185 -0.1831) |
| OKLCH | oklch(50.29% 0.184 275.8) |
| XYZ | xyz(16.5801, 11.6843, 57.2472) |
| Luminance | 0.1169 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.94
Iris
#6258C4
ΔE00 3.95
Slate Blue
#6A5ACD
ΔE00 5.32
Ocean Blue
#4F42B5
ΔE00 5.37
Blue Blue
#2242C7
ΔE00 5.58
Dark Periwinkle
#665FD1
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C51CA #CAC54C
analogous
#4C90CA #4C51CA #864CCA
triadic
#4C51CA #CA4C51 #51CA4C
tetradic
#4C51CA #CA4C90 #CAC54C #4CCA86
square
#4C51CA #CA4C90 #CAC54C #4CCA86
split-complementary
#4C51CA #CA864C #90CA4C
monochromatic
#242778 #3236A7 #4C51CA #7B7FD8 #AAADE6
Accessibility & contrast
On white
6.29
#4C51CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#4C51CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4C51CA
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C51CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C51CA | 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)
#0066CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #4c51ca; /* rgb */ color: rgb(76, 81, 202); /* oklch */ color: oklch(50.3% 0.184 275.8);
Tailwind
colors: {
custom: {
50: '#8b82db',
500: '#4c51ca',
950: '#000000',
},
}SCSS
$custom: #4c51ca; $custom-light: #8b82db; $custom-dark: #000000;
JSON
{
"hex": "#4c51ca",
"rgb": {
"r": 76,
"g": 81,
"b": 202
},
"hsl": {
"h": 237.619,
"s": 54.31,
"l": 54.51
},
"oklch": {
"l": 0.50294,
"c": 0.18407,
"h": 275.8
},
"luminance": 0.11686
}Semantic roles & 50–950 ramp
primary
#4C51CA
secondary
#D4D19E
accent
#D84ADE
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83