#4F51CB#4F51CB
#4F51CB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.185 H 276.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #4F51CB |
|---|---|
| RGB | rgb(79, 81, 203) |
| HSL | hsl(239, 54%, 55%) |
| HSV | hsv(239, 61%, 80%) |
| CMYK | cmyk(61.1%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(40.99, 35.76, -63.76) |
| CIE-LCH | lch(40.99, 73.10, 299.28°) |
| OKLab | oklab(50.58% 0.0219 -0.1834) |
| OKLCH | oklch(50.58% 0.185 276.8) |
| XYZ | xyz(16.9429, 11.8576, 57.8842) |
| Luminance | 0.1186 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.89
Iris
#6258C4
ΔE00 3.62
Slate Blue
#6A5ACD
ΔE00 4.92
Dark Periwinkle
#665FD1
ΔE00 5.35
Ocean Blue
#4F42B5
ΔE00 5.35
Light Indigo
#6D5ACF
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F51CB #CBC94F
analogous
#4F8FCB #4F51CB #8B4FCB
triadic
#4F51CB #CB4F51 #51CB4F
tetradic
#4F51CB #CB4F8F #CBC94F #4FCB8B
square
#4F51CB #CB4F8F #CBC94F #4FCB8B
split-complementary
#4F51CB #CB8B4F #8FCB4F
monochromatic
#24267B #3234AA #4F51CB #7E80D9 #ADAEE7
Accessibility & contrast
On white
6.23
#4F51CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#4F51CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4F51CB
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F51CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F51CB | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #4f51cb; /* rgb */ color: rgb(79, 81, 203); /* oklch */ color: oklch(50.6% 0.185 276.8);
Tailwind
colors: {
custom: {
50: '#8d82dc',
500: '#4f51cb',
950: '#000000',
},
}SCSS
$custom: #4f51cb; $custom-light: #8d82dc; $custom-dark: #000000;
JSON
{
"hex": "#4f51cb",
"rgb": {
"r": 79,
"g": 81,
"b": 203
},
"hsl": {
"h": 239.032,
"s": 54.386,
"l": 55.294
},
"oklch": {
"l": 0.50576,
"c": 0.18471,
"h": 276.8
},
"luminance": 0.11859
}Semantic roles & 50–950 ramp
primary
#4F51CB
secondary
#D5D4A1
accent
#DB4ADE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83