#4D51D6#4D51D6
#4D51D6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.200 H 275.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #4D51D6 |
|---|---|
| RGB | rgb(77, 81, 214) |
| HSL | hsl(238, 63%, 57%) |
| HSV | hsv(238, 64%, 84%) |
| CMYK | cmyk(64%, 62.1%, 0%, 16.1%) |
| CIE-LAB | lab(41.71, 39.09, -68.92) |
| CIE-LCH | lch(41.71, 79.23, 299.56°) |
| OKLab | oklab(51.34% 0.0191 -0.1986) |
| OKLCH | oklch(51.34% 0.2 275.5) |
| XYZ | xyz(18.1366, 12.3161, 65.0268) |
| Luminance | 0.1232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.00
Iris
#6258C4
ΔE00 4.29
Slate Blue
#6A5ACD
ΔE00 5.07
Dark Periwinkle
#665FD1
ΔE00 5.30
Electric Blue
#0652FF
ΔE00 5.41
Light Indigo
#6D5ACF
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D51D6 #D6D24D
analogous
#4D96D6 #4D51D6 #8E4DD6
triadic
#4D51D6 #D64D51 #51D64D
tetradic
#4D51D6 #D64D96 #D6D24D #4DD68E
square
#4D51D6 #D64D96 #D6D24D #4DD68E
split-complementary
#4D51D6 #D68E4D #96D64D
monochromatic
#202389 #2B2FBB #4D51D6 #7F82E1 #B0B2ED
Accessibility & contrast
On white
6.06
#4D51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#4D51D6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4D51D6
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D51D6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D51D6 | 1.00 | 6.06 | 3.46 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #4d51d6; /* rgb */ color: rgb(77, 81, 214); /* oklch */ color: oklch(51.3% 0.200 275.5);
Tailwind
colors: {
custom: {
50: '#8e82e4',
500: '#4d51d6',
950: '#000000',
},
}SCSS
$custom: #4d51d6; $custom-light: #8e82e4; $custom-dark: #000000;
JSON
{
"hex": "#4d51d6",
"rgb": {
"r": 77,
"g": 81,
"b": 214
},
"hsl": {
"h": 238.248,
"s": 62.557,
"l": 57.059
},
"oklch": {
"l": 0.51343,
"c": 0.19952,
"h": 275.5
},
"luminance": 0.12318
}Semantic roles & 50–950 ramp
primary
#4D51D6
secondary
#DBDAA4
accent
#E142E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84