#4C51BE#4C51BE
#4C51BE is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.168 H 276.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #4C51BE |
|---|---|
| RGB | rgb(76, 81, 190) |
| HSL | hsl(237, 47%, 52%) |
| HSV | hsv(237, 60%, 75%) |
| CMYK | cmyk(60%, 57.4%, 0%, 25.5%) |
| CIE-LAB | lab(39.81, 30.91, -58.13) |
| CIE-LCH | lch(39.81, 65.84, 298.00°) |
| OKLab | oklab(49.35% 0.0186 -0.1669) |
| OKLCH | oklch(49.35% 0.168 276.3) |
| XYZ | xyz(15.2142, 11.1379, 50.0533) |
| Luminance | 0.1114 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.09
Warm Blue
#4B57DB
ΔE00 4.34
Ocean Blue
#4F42B5
ΔE00 4.80
Blue Blue
#2242C7
ΔE00 5.59
Slate Blue
#6A5ACD
ΔE00 5.87
Dark Periwinkle
#665FD1
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C51BE #BEB94C
analogous
#4C8ABE #4C51BE #804CBE
triadic
#4C51BE #BE4C51 #51BE4C
tetradic
#4C51BE #BE4C8A #BEB94C #4CBE80
square
#4C51BE #BE4C8A #BEB94C #4CBE80
split-complementary
#4C51BE #BE804C #8ABE4C
monochromatic
#262969 #373B96 #4C51BE #797DCE #A6A8DF
Accessibility & contrast
On white
6.51
#4C51BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#4C51BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4C51BE
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C51BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C51BE | 1.00 | 6.51 | 3.23 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #4c51be; /* rgb */ color: rgb(76, 81, 190); /* oklch */ color: oklch(49.3% 0.168 276.3);
Tailwind
colors: {
custom: {
50: '#8982d2',
500: '#4c51be',
950: '#000000',
},
}SCSS
$custom: #4c51be; $custom-light: #8982d2; $custom-dark: #000000;
JSON
{
"hex": "#4c51be",
"rgb": {
"r": 76,
"g": 81,
"b": 190
},
"hsl": {
"h": 237.368,
"s": 46.721,
"l": 52.157
},
"oklch": {
"l": 0.49346,
"c": 0.16795,
"h": 276.3
},
"luminance": 0.11139
}Semantic roles & 50–950 ramp
primary
#4C51BE
secondary
#CCCA9A
accent
#D151D6
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0D0A14
muted
#7D7C83