#4B51BA#4B51BA
#4B51BA is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.163 H 276.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #4B51BA |
|---|---|
| RGB | rgb(75, 81, 186) |
| HSL | hsl(237, 45%, 51%) |
| HSV | hsv(237, 60%, 73%) |
| CMYK | cmyk(59.7%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(39.45, 29.39, -56.37) |
| CIE-LCH | lch(39.45, 63.57, 297.54°) |
| OKLab | oklab(48.97% 0.0174 -0.1618) |
| OKLCH | oklch(48.97% 0.163 276.1) |
| XYZ | xyz(14.7041, 10.9248, 47.7787) |
| Luminance | 0.1093 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.41
Ocean Blue
#4F42B5
ΔE00 4.81
Warm Blue
#4B57DB
ΔE00 4.86
Blue Blue
#2242C7
ΔE00 5.65
Slate Blue
#6A5ACD
ΔE00 6.27
Sapphire
#0F52BA
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B51BA #BAB44B
analogous
#4B88BA #4B51BA #7C4BBA
triadic
#4B51BA #BA4B51 #51BA4B
tetradic
#4B51BA #BA4B88 #BAB44B #4BBA7C
square
#4B51BA #BA4B88 #BAB44B #4BBA7C
split-complementary
#4B51BA #BA7C4B #88BA4B
monochromatic
#262A64 #373C90 #4B51BA #777CCB #A3A7DC
Accessibility & contrast
On white
6.59
#4B51BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#4B51BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4B51BA
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B51BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B51BA | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #4b51ba; /* rgb */ color: rgb(75, 81, 186); /* oklch */ color: oklch(49.0% 0.163 276.1);
Tailwind
colors: {
custom: {
50: '#8881cf',
500: '#4b51ba',
950: '#000000',
},
}SCSS
$custom: #4b51ba; $custom-light: #8881cf; $custom-dark: #000000;
JSON
{
"hex": "#4b51ba",
"rgb": {
"r": 75,
"g": 81,
"b": 186
},
"hsl": {
"h": 236.757,
"s": 44.578,
"l": 51.176
},
"oklch": {
"l": 0.4897,
"c": 0.16271,
"h": 276.1
},
"luminance": 0.10926
}Semantic roles & 50–950 ramp
primary
#4B51BA
secondary
#C9C698
accent
#CD54D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82