#4C51D6#4C51D6
#4C51D6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.200 H 275.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #4C51D6 |
|---|---|
| RGB | rgb(76, 81, 214) |
| HSL | hsl(238, 63%, 57%) |
| HSV | hsv(238, 64%, 84%) |
| CMYK | cmyk(64.5%, 62.1%, 0%, 16.1%) |
| CIE-LAB | lab(41.65, 38.94, -69.03) |
| CIE-LCH | lch(41.65, 79.25, 299.43°) |
| OKLab | oklab(51.28% 0.018 -0.1989) |
| OKLCH | oklch(51.28% 0.2 275.2) |
| XYZ | xyz(18.0565, 12.2749, 65.0230) |
| Luminance | 0.1228 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.98
Iris
#6258C4
ΔE00 4.37
Slate Blue
#6A5ACD
ΔE00 5.18
Electric Blue
#0652FF
ΔE00 5.34
Dark Periwinkle
#665FD1
ΔE00 5.38
Blue (survey)
#0343DF
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C51D6 #D6D14C
analogous
#4C96D6 #4C51D6 #8C4CD6
triadic
#4C51D6 #D64C51 #51D64C
tetradic
#4C51D6 #D64C96 #D6D14C #4CD68C
square
#4C51D6 #D64C96 #D6D14C #4CD68C
split-complementary
#4C51D6 #D68C4C #96D64C
monochromatic
#1F2388 #2B30BA #4C51D6 #7E81E1 #B0B2ED
Accessibility & contrast
On white
6.08
#4C51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#4C51D6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4C51D6
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C51D6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C51D6 | 1.00 | 6.08 | 3.46 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #4c51d6; /* rgb */ color: rgb(76, 81, 214); /* oklch */ color: oklch(51.3% 0.200 275.2);
Tailwind
colors: {
custom: {
50: '#8d82e4',
500: '#4c51d6',
950: '#000000',
},
}SCSS
$custom: #4c51d6; $custom-light: #8d82e4; $custom-dark: #000000;
JSON
{
"hex": "#4c51d6",
"rgb": {
"r": 76,
"g": 81,
"b": 214
},
"hsl": {
"h": 237.826,
"s": 62.727,
"l": 56.863
},
"oklch": {
"l": 0.51279,
"c": 0.19976,
"h": 275.2
},
"luminance": 0.12276
}Semantic roles & 50–950 ramp
primary
#4C51D6
secondary
#DBD9A3
accent
#E042E6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84